printf "\n\033[1;36m[*] Uninstalling gitcore...\033[0m\n"
DEST_PATHS="/usr/local/bin/gitcore $HOME/.local/bin/gitcore"
REMOVED=false
for path in $DEST_PATHS; do
if [ -f "$path" ]; then
rm "$path"
printf "[+] Removed $path\n"
REMOVED=true
fi
done
if [ "$REMOVED" = false ]; then
printf "[-] gitcore not found in common locations\n"
else
printf "\033[1;32m[+] Done\033[0m\n"
fi
printf "\n"
printf "SSH keys and gitcore configuration were left untouched for safety.\n"
printf "To remove them manually:\n"
printf " rm -rf ~/.config/gitcore\n"
printf " rm ~/.ssh/id_ed25519_* (Careful!)\n"
printf "\n"