Quote $PREFIX properly for paths with spaces

This commit is contained in:
lolilolicon 2021-09-23 01:24:52 +00:00 committed by GitHub
parent 383cd44119
commit ae7693a8a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,13 +6,13 @@ if [ "$PREFIX" = "" ]; then
PREFIX=/usr/local
fi
xdg-mime uninstall ${PREFIX}/share/anki/anki.xml || true
xdg-mime uninstall "$PREFIX"/share/anki/anki.xml || true
rm -rf ${PREFIX}/share/anki
rm -rf ${PREFIX}/bin/anki
rm -rf ${PREFIX}/share/pixmaps/anki.xpm
rm -rf ${PREFIX}/share/pixmaps/anki.png
rm -rf ${PREFIX}/share/applications/anki.desktop
rm -rf ${PREFIX}/share/man/man1/anki.1
rm -rf "$PREFIX"/share/anki
rm -rf "$PREFIX"/bin/anki
rm -rf "$PREFIX"/share/pixmaps/anki.xpm
rm -rf "$PREFIX"/share/pixmaps/anki.png
rm -rf "$PREFIX"/share/applications/anki.desktop
rm -rf "$PREFIX"/share/man/man1/anki.1
echo "Uninstall complete."