You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
664 B
Plaintext
22 lines
664 B
Plaintext
4 years ago
|
#!/bin/bash
|
||
|
|
||
|
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
||
|
|
||
|
function error {
|
||
|
echo -e "\\e[91m$1\\e[39m"
|
||
|
exit 1
|
||
|
}
|
||
|
|
||
|
echo "Removing dependencies..."
|
||
|
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
|
||
|
|
||
|
echo "Removing $HOME/wor-flasher folder..."
|
||
|
rm -rf ~/wor-flasher || error "Failed to remove ~/wor-flasher folder!"
|
||
|
|
||
|
echo "Removing menu button..."
|
||
|
rm -f ~/.local/share/applications/wor-flasher.desktop
|
||
|
|
||
|
if [ -d ~/wor-flasher-files ];then
|
||
|
echo -e "\nDuring use, WoR-flasher downloads all files to $HOME/wor-flasher-files\nThis folder exists right now.\nFeel free to delete that folder to save disk space.\n"
|
||
|
fi
|