remove old symlink before installing a new version

https://forums.ankiweb.net/t/ubuntu-command-anki-not-found/6083/4
This commit is contained in:
Damien Elmes 2020-12-30 20:56:28 +10:00
parent eca27b3710
commit 67191d339c

View file

@ -6,7 +6,7 @@ if [ "$PREFIX" = "" ]; then
PREFIX=/usr/local
fi
rm -rf ${PREFIX}/share/anki
rm -rf ${PREFIX}/share/anki ${PREFIX}/bin/anki
mkdir -p ${PREFIX}/share/anki
cp -av * ${PREFIX}/share/anki/
mkdir -p ${PREFIX}/bin