diff options
author | Matthias Baur <thats@matthiasbaur.me> | 2019-01-17 20:04:57 +0100 |
---|---|---|
committer | Matthias Baur <m.baur@syseleven.de> | 2019-03-12 15:44:38 +0100 |
commit | 7c553a6017c64d98017a6010dc6e77d22ab72da4 (patch) | |
tree | 137c5ea1f4b4291774804541cc01c38a54ed2617 /scripts/dev.sh | |
parent | a48ff25d4c9f99dfb8ec1a9a1ae296417af6d9c9 (diff) | |
download | wallabag-7c553a6017c64d98017a6010dc6e77d22ab72da4.tar.gz wallabag-7c553a6017c64d98017a6010dc6e77d22ab72da4.tar.zst wallabag-7c553a6017c64d98017a6010dc6e77d22ab72da4.zip |
Properly source require.sh
Fixes #3571.
Diffstat (limited to 'scripts/dev.sh')
-rwxr-xr-x | scripts/dev.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/dev.sh b/scripts/dev.sh index 0703ced1..28453be0 100755 --- a/scripts/dev.sh +++ b/scripts/dev.sh | |||
@@ -3,10 +3,14 @@ | |||
3 | # eg: `sh dev.sh` | 3 | # eg: `sh dev.sh` |
4 | 4 | ||
5 | COMPOSER_COMMAND='composer' | 5 | COMPOSER_COMMAND='composer' |
6 | REQUIRE_FILE='scripts/require.sh' | ||
6 | 7 | ||
7 | DIR="${BASH_SOURCE}" | 8 | if [ ! -f "$REQUIRE_FILE" ]; then |
8 | if [ ! -d "$DIR" ]; then DIR="$PWD/scripts"; fi | 9 | echo "Cannot find $REQUIRE_FILE" |
9 | . "$DIR/require.sh" | 10 | exit 1 |
11 | fi | ||
12 | |||
13 | . "$REQUIRE_FILE" | ||
10 | 14 | ||
11 | $COMPOSER_COMMAND install | 15 | $COMPOSER_COMMAND install |
12 | php bin/console wallabag:install | 16 | php bin/console wallabag:install |