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,13 +31,17 @@ if ! [ -d "$SPOTIFY" ]; then
fi fi
if [ "$1" == "uninstall" ]; then if [ "$1" == "uninstall" ]; then
echo "Uninstalling BlockTheSpot..." if [ -f "$SPOTIFY/chrome_elf_bak.dll" ]; then
for v in "${patchfiles[@]}" echo "Uninstalling BlockTheSpot..."
do for v in "${patchfiles[@]}"
rm "$SPOTIFY/$v" do
done rm "$SPOTIFY/$v"
mv "$SPOTIFY/chrome_elf_bak.dll" "$SPOTIFY/chrome_elf.dll" done
echo "Uninstalling completed." mv "$SPOTIFY/chrome_elf_bak.dll" "$SPOTIFY/chrome_elf.dll"
echo "Uninstalling completed."
else
echo "Nothing to uninstall."
fi
exit exit
fi fi