Don't uninstall if not installed
This commit is contained in:
parent
93b49f3ed8
commit
461abd25b8
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user