From 70f096adc642d9569b0a3363fa5905ed9d00f767 Mon Sep 17 00:00:00 2001 From: chyeh Date: Thu, 13 Jun 2024 16:03:00 +0200 Subject: [PATCH] Fix uninstall script --- tools/uninstall.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/uninstall.sh b/tools/uninstall.sh index 6e3df7aca..6634eeed5 100644 --- a/tools/uninstall.sh +++ b/tools/uninstall.sh @@ -16,8 +16,14 @@ if [ "$confirmation" != y ] && [ "$confirmation" != Y ]; then exit fi -echo "Removing ~/.oh-my-zsh" -if [ -d ~/.oh-my-zsh ]; then +# echo "Removing ~/.oh-my-zsh" +# if [ -d ~/.oh-my-zsh ]; then +# rm -rf ~/.oh-my-zsh +# fi +echo "Removing oh-my-zsh directory" +if [ -n "$ZSH" -a -d "$ZSH" ]; then + rm -rf "$ZSH" +elif [ -d ~/.oh-my-zsh ]; then rm -rf ~/.oh-my-zsh fi