summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2015-10-09 07:17:00 -0700
committerRobby Russell <robby@planetargon.com>2015-10-09 07:17:00 -0700
commit01448020a750256f8ce68f9cf348a4f029bda946 (patch)
treeb78ee9ac45198bf67f5ca1cd91d28cf8ebd4feea /tools
parentdc06e96e9cf52354ac76e9795cc85d528b2d5018 (diff)
parent6b73f5ec7504ebc118d4bb6fdfaf841333f9c7a4 (diff)
downloadzsh-01448020a750256f8ce68f9cf348a4f029bda946.tar.gz
zsh-01448020a750256f8ce68f9cf348a4f029bda946.tar.bz2
zsh-01448020a750256f8ce68f9cf348a4f029bda946.zip
Merge pull request #4464 from rchiossi/master
Ask for confirmation before uninstall
Diffstat (limited to 'tools')
-rw-r--r--tools/uninstall.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/uninstall.sh b/tools/uninstall.sh
index 23bfac0eb..f9da00c9b 100644
--- a/tools/uninstall.sh
+++ b/tools/uninstall.sh
@@ -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