Fix uninstall script

This commit is contained in:
chyeh 2024-06-13 16:03:00 +02:00
parent 8908e6d720
commit 70f096adc6

View file

@ -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