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

Merge pull request #4464 from rchiossi/master

Ask for confirmation before uninstall
This commit is contained in:
Robby Russell 2015-10-09 07:17:00 -07:00
commit 01448020a7

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