diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-06-14 11:28:23 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-06-14 11:28:23 +0200 |
commit | 0a258f85be31c5d99317ffdc83cc8735e504ed48 (patch) | |
tree | 32aa74349ede51e1f4de40aa90f77668a38b7d36 | |
parent | 7a82953b3e34e07df2a6ac8b09d01b47db5da879 (diff) | |
download | wallabag-0a258f85be31c5d99317ffdc83cc8735e504ed48.tar.gz wallabag-0a258f85be31c5d99317ffdc83cc8735e504ed48.tar.zst wallabag-0a258f85be31c5d99317ffdc83cc8735e504ed48.zip |
Return a different code when git isn't installed
-rwxr-xr-x | scripts/update.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/update.sh b/scripts/update.sh index edebe5c5..1f31d429 100755 --- a/scripts/update.sh +++ b/scripts/update.sh | |||
@@ -40,7 +40,7 @@ fi | |||
40 | # Check for wallabag .git folder | 40 | # Check for wallabag .git folder |
41 | if [ ! -d .git ]; then | 41 | if [ ! -d .git ]; then |
42 | echo "Can not update because wallabag wasn't installed using git (see https://doc.wallabag.org/en/admin/upgrade.html#upgrade-on-a-shared-hosting). Aborting."; | 42 | echo "Can not update because wallabag wasn't installed using git (see https://doc.wallabag.org/en/admin/upgrade.html#upgrade-on-a-shared-hosting). Aborting."; |
43 | exit 1; | 43 | exit 2; |
44 | fi | 44 | fi |
45 | 45 | ||
46 | rm -rf var/cache/* | 46 | rm -rf var/cache/* |