Skip to content

Instantly share code, notes, and snippets.

@andrewnicols

andrewnicols/browsers.sh

Last active Feb 14, 2021
Embed
What would you like to do?
#!/bin/bash
grep 'moodle-browser-config' config.php > /dev/null
if [ $? -ne 0 ]
then
echo Adding browsers
gsed -i '/^\$CFG->wwwroot.*=.*$/ a require_once(dirname(dirname(__DIR__)) . "\/moodle-browser-config/init.php");' config.php
else
echo Behat browser defitions already there
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment