aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/update.sh
diff options
context:
space:
mode:
authorMatthias Baur <thats@matthiasbaur.me>2019-01-17 20:04:57 +0100
committerMatthias Baur <m.baur@syseleven.de>2019-03-12 15:44:38 +0100
commit7c553a6017c64d98017a6010dc6e77d22ab72da4 (patch)
tree137c5ea1f4b4291774804541cc01c38a54ed2617 /scripts/update.sh
parenta48ff25d4c9f99dfb8ec1a9a1ae296417af6d9c9 (diff)
downloadwallabag-7c553a6017c64d98017a6010dc6e77d22ab72da4.tar.gz
wallabag-7c553a6017c64d98017a6010dc6e77d22ab72da4.tar.zst
wallabag-7c553a6017c64d98017a6010dc6e77d22ab72da4.zip
Properly source require.sh
Fixes #3571.
Diffstat (limited to 'scripts/update.sh')
-rwxr-xr-xscripts/update.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/update.sh b/scripts/update.sh
index e86a76db..3ef10439 100755
--- a/scripts/update.sh
+++ b/scripts/update.sh
@@ -28,10 +28,14 @@ set -e
28set -u 28set -u
29 29
30COMPOSER_COMMAND='composer' 30COMPOSER_COMMAND='composer'
31REQUIRE_FILE='scripts/require.sh'
31 32
32DIR="${BASH_SOURCE}" 33if [ ! -f "$REQUIRE_FILE" ]; then
33if [ ! -d "$DIR" ]; then DIR="$PWD/scripts"; fi 34 echo "Cannot find $REQUIRE_FILE"
34. "$DIR/require.sh" 35 exit 1
36fi
37
38. "$REQUIRE_FILE"
35 39
36rm -rf var/cache/* 40rm -rf var/cache/*
37git fetch origin 41git fetch origin