diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2019-03-18 09:25:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-18 09:25:00 +0100 |
commit | 893f107fa1451050b478838c84dc85eb295c94b7 (patch) | |
tree | 137c5ea1f4b4291774804541cc01c38a54ed2617 /scripts/update.sh | |
parent | a48ff25d4c9f99dfb8ec1a9a1ae296417af6d9c9 (diff) | |
parent | 7c553a6017c64d98017a6010dc6e77d22ab72da4 (diff) | |
download | wallabag-893f107fa1451050b478838c84dc85eb295c94b7.tar.gz wallabag-893f107fa1451050b478838c84dc85eb295c94b7.tar.zst wallabag-893f107fa1451050b478838c84dc85eb295c94b7.zip |
Merge pull request #3860 from baurmatt/fix/posix_compatibility
Make dev/install/update script posix compatible
Diffstat (limited to 'scripts/update.sh')
-rwxr-xr-x | scripts/update.sh | 10 |
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 | |||
28 | set -u | 28 | set -u |
29 | 29 | ||
30 | COMPOSER_COMMAND='composer' | 30 | COMPOSER_COMMAND='composer' |
31 | REQUIRE_FILE='scripts/require.sh' | ||
31 | 32 | ||
32 | DIR="${BASH_SOURCE}" | 33 | if [ ! -f "$REQUIRE_FILE" ]; then |
33 | if [ ! -d "$DIR" ]; then DIR="$PWD/scripts"; fi | 34 | echo "Cannot find $REQUIRE_FILE" |
34 | . "$DIR/require.sh" | 35 | exit 1 |
36 | fi | ||
37 | |||
38 | . "$REQUIRE_FILE" | ||
35 | 39 | ||
36 | rm -rf var/cache/* | 40 | rm -rf var/cache/* |
37 | git fetch origin | 41 | git fetch origin |