From 6e724ea480750b037d595435a2c4805ce10aca22 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 2 Jun 2021 18:58:35 +1000 Subject: [PATCH] make sure install.sh is run from the correct folder https://forums.ankiweb.net/t/upgrade-doesnt-work-free-disk-space-is-written-full/10500/2 --- qt/linux/install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qt/linux/install.sh b/qt/linux/install.sh index e3f124dc4..5389c923a 100755 --- a/qt/linux/install.sh +++ b/qt/linux/install.sh @@ -2,6 +2,11 @@ set -e +if ! test -f install.sh; then + echo "Please run from the folder install.sh is in." + exit 1 +fi + if [ "$PREFIX" = "" ]; then PREFIX=/usr/local fi