Return a different code when git isn't installed

This commit is contained in:
Jeremy Benoist 2019-06-14 11:28:23 +02:00
parent 7a82953b3e
commit 0a258f85be
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C

View file

@ -40,7 +40,7 @@ fi
# Check for wallabag .git folder
if [ ! -d .git ]; then
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.";
exit 1;
exit 2;
fi
rm -rf var/cache/*