Don't uninstall if not installed
This commit is contained in:
parent
93b49f3ed8
commit
461abd25b8
@ -31,6 +31,7 @@ if ! [ -d "$SPOTIFY" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" == "uninstall" ]; then
|
if [ "$1" == "uninstall" ]; then
|
||||||
|
if [ -f "$SPOTIFY/chrome_elf_bak.dll" ]; then
|
||||||
echo "Uninstalling BlockTheSpot..."
|
echo "Uninstalling BlockTheSpot..."
|
||||||
for v in "${patchfiles[@]}"
|
for v in "${patchfiles[@]}"
|
||||||
do
|
do
|
||||||
@ -38,6 +39,9 @@ if [ "$1" == "uninstall" ]; then
|
|||||||
done
|
done
|
||||||
mv "$SPOTIFY/chrome_elf_bak.dll" "$SPOTIFY/chrome_elf.dll"
|
mv "$SPOTIFY/chrome_elf_bak.dll" "$SPOTIFY/chrome_elf.dll"
|
||||||
echo "Uninstalling completed."
|
echo "Uninstalling completed."
|
||||||
|
else
|
||||||
|
echo "Nothing to uninstall."
|
||||||
|
fi
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user