X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fupdate.sh;h=3ef1043920d3157f76b21f312037047320a91147;hb=7c553a6017c64d98017a6010dc6e77d22ab72da4;hp=e86a76db4729cd722cc26051a6e3a84e69b5f7a1;hpb=a48ff25d4c9f99dfb8ec1a9a1ae296417af6d9c9;p=github%2Fwallabag%2Fwallabag.git 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 set -u 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" rm -rf var/cache/* git fetch origin