From 42d1ae029c26b41430638258f4d7520b3f84f139 Mon Sep 17 00:00:00 2001 From: nebirhos Date: Sat, 24 Mar 2012 03:00:42 +0100 Subject: [PATCH] Ask confirmation before uninstall --- tools/uninstall.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/uninstall.sh b/tools/uninstall.sh index 8ff583322..9157651ad 100644 --- a/tools/uninstall.sh +++ b/tools/uninstall.sh @@ -1,3 +1,12 @@ +#!/bin/zsh + +### Better prompt the user! +echo -n "Are you sure to completely remove OH MY ZSH?" +read "a? [type 'yes' to continue] " +if [[ $a != "yes" ]]; then + return 0 +fi + echo "Removing ~/.oh-my-zsh" if [[ -d ~/.oh-my-zsh ]] then