From 653ca995ae96f416cc75cdcb1cebb5aa86f6088e Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sat, 22 Feb 2025 11:07:18 +0900 Subject: [PATCH] updated zsh_pokemon.sh --- install-scripts/zsh_pokemon.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/install-scripts/zsh_pokemon.sh b/install-scripts/zsh_pokemon.sh index c9b5772..d8c22cd 100755 --- a/install-scripts/zsh_pokemon.sh +++ b/install-scripts/zsh_pokemon.sh @@ -15,6 +15,18 @@ source "$(dirname "$(readlink -f "$0")")/Global_functions.sh" # Set the name of the log file to include the current date and time LOG="Install-Logs/install-$(date +%d-%H%M%S)_zsh_pokemon.log" +printf "${NOTE} Removing any traces of ${SKY_BLUE}Pokemon Color Scripts${RESET}\n" + +# Check if the pokemon directory exists +if [ -d "/usr/local/opt/pokemon-colorscripts" ]; then + sudo rm -rf /usr/local/opt/pokemon-colorscripts +fi + +# Check if the pokemon file exists +if [ -f "/usr/local/bin/pokemon-colorscripts" ]; then + sudo rm -f /usr/local/bin/pokemon-colorscripts +fi + # Install Pokemon Color Scripts printf "${NOTE} Installing ${SKY_BLUE}Pokemon Color Scripts${RESET}\n" for pok in "pokemon-colorscripts-git"; do