Add uninstall function

This commit is contained in:
darkelaina 2021-12-21 14:17:13 +00:00
parent a656399549
commit 93b49f3ed8

View File

@ -30,6 +30,17 @@ if ! [ -d "$SPOTIFY" ]; then
exit exit
fi fi
if [ "$1" == "uninstall" ]; then
echo "Uninstalling BlockTheSpot..."
for v in "${patchfiles[@]}"
do
rm "$SPOTIFY/$v"
done
mv "$SPOTIFY/chrome_elf_bak.dll" "$SPOTIFY/chrome_elf.dll"
echo "Uninstalling completed."
exit
fi
echo "Downloading BlockTheSpot..." echo "Downloading BlockTheSpot..."
curl -OL "https://github.com/mrpond/BlockTheSpot/releases/latest/download/chrome_elf.zip" curl -OL "https://github.com/mrpond/BlockTheSpot/releases/latest/download/chrome_elf.zip"