1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-06-27 16:36:00 +00:00

Properly source require.sh

Fixes #3571.
This commit is contained in:
Matthias Baur 2019-01-17 20:04:57 +01:00 committed by Matthias Baur
parent a48ff25d4c
commit 7c553a6017
No known key found for this signature in database
GPG key ID: B5FC9F20AD4618D6
3 changed files with 21 additions and 9 deletions

View file

@ -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