X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fdev.sh;h=28453be0d63cadeefbdd0e086e68b7c55bfe810b;hb=c19845a7ae5fe7c1ff22fd560c48e4af8b9da15a;hp=0703ced1ef9111ef4c08d055db471fb43f50fad3;hpb=2db9142bfc3e34c1f79f3aabf5b302c3a487b3e1;p=github%2Fwallabag%2Fwallabag.git diff --git a/scripts/dev.sh b/scripts/dev.sh old mode 100644 new mode 100755 index 0703ced1..28453be0 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -3,10 +3,14 @@ # eg: `sh dev.sh` COMPOSER_COMMAND='composer' +REQUIRE_FILE='scripts/require.sh' -DIR="${BASH_SOURCE}" -if [ ! -d "$DIR" ]; then DIR="$PWD/scripts"; fi -. "$DIR/require.sh" +if [ ! -f "$REQUIRE_FILE" ]; then + echo "Cannot find $REQUIRE_FILE" + exit 1 +fi + +. "$REQUIRE_FILE" $COMPOSER_COMMAND install php bin/console wallabag:install