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
This commit is contained in:
Damien Elmes 2021-06-02 18:58:35 +10:00
parent 4325f867a7
commit 6e724ea480

View file

@ -2,6 +2,11 @@
set -e set -e
if ! test -f install.sh; then
echo "Please run from the folder install.sh is in."
exit 1
fi
if [ "$PREFIX" = "" ]; then if [ "$PREFIX" = "" ]; then
PREFIX=/usr/local PREFIX=/usr/local
fi fi