01448020a750256f8ce68f9cf348a4f029bda946

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #4464 from rchiossi/master

Ask for confirmation before uninstall

Diff

 1diff --git a/tools/uninstall.sh b/tools/uninstall.sh
 2index 23bfac0eb5f07907fa844c2aafb029872fdbef2d..f9da00c9bade5730a671cf38fd58e15ec5f94317 100644
 3--- a/tools/uninstall.sh
 4+++ b/tools/uninstall.sh
 5@@ -1,3 +1,10 @@
 6+read -r -p "Are you sure you want to remove Oh My Zsh? [y/N] " confirmation
 7+if ! [[ $confirmation =~ ^[yY]$ ]]
 8+then
 9+    echo "Uninstall cancelled"
10+    exit
11+fi
12+
13 echo "Removing ~/.oh-my-zsh"
14 if [ -d ~/.oh-my-zsh ]
15 then