From 93b49f3ed809aedd5fdf28447bb3bb80f0b0176e Mon Sep 17 00:00:00 2001 From: darkelaina <3550664-tretrauit@users.noreply.gitlab.com> Date: Tue, 21 Dec 2021 14:17:13 +0000 Subject: [PATCH] Add uninstall function --- Apps/BlockTheSpot/install.bash | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Apps/BlockTheSpot/install.bash b/Apps/BlockTheSpot/install.bash index c4bb14d..316291a 100644 --- a/Apps/BlockTheSpot/install.bash +++ b/Apps/BlockTheSpot/install.bash @@ -30,6 +30,17 @@ if ! [ -d "$SPOTIFY" ]; then exit 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..." curl -OL "https://github.com/mrpond/BlockTheSpot/releases/latest/download/chrome_elf.zip"