1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-19 20:30:09 +00:00

Ask for confirmation before uninstall

Prompt the user before removing oh-my-zsh from the system
This commit is contained in:
Rodrigo Chiossi 2015-10-05 18:32:42 -03:00
parent f3fa41834d
commit 6b73f5ec75

View file

@ -1,3 +1,10 @@
read -r -p "Are you sure you want to remove Oh My Zsh? [y/N] " confirmation
if ! [[ $confirmation =~ ^[yY]$ ]]
then
echo "Uninstall cancelled"
exit
fi
echo "Removing ~/.oh-my-zsh"
if [ -d ~/.oh-my-zsh ]
then