Last active
February 14, 2021 04:19
-
-
Save andrewnicols/c7cfba419b7bc486ea60ae80caad1f7c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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