]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - scripts/update.sh
Check if .git directory exist
[github/wallabag/wallabag.git] / scripts / update.sh
index 3ef1043920d3157f76b21f312037047320a91147..edebe5c52a1b59c96ad44ffbbef2477fb3a43368 100755 (executable)
@@ -37,6 +37,12 @@ fi
 
 . "$REQUIRE_FILE"
 
+# 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;
+fi
+
 rm -rf var/cache/*
 git fetch origin
 git fetch --tags