Don't uninstall if not installed

This commit is contained in:
darkelaina 2021-12-21 14:20:50 +00:00
parent 93b49f3ed8
commit 461abd25b8

View File

@ -31,6 +31,7 @@ if ! [ -d "$SPOTIFY" ]; then
fi
if [ "$1" == "uninstall" ]; then
if [ -f "$SPOTIFY/chrome_elf_bak.dll" ]; then
echo "Uninstalling BlockTheSpot..."
for v in "${patchfiles[@]}"
do
@ -38,6 +39,9 @@ if [ "$1" == "uninstall" ]; then
done
mv "$SPOTIFY/chrome_elf_bak.dll" "$SPOTIFY/chrome_elf.dll"
echo "Uninstalling completed."
else
echo "Nothing to uninstall."
fi
exit
fi