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