zsh: purge: make default uppercase
authorBernhard Tittelbach <bernhard@tittelbach.org>
Thu, 26 Jan 2012 20:51:54 +0000 (21:51 +0100)
committerBernhard Tittelbach <bernhard@tittelbach.org>
Thu, 26 Jan 2012 20:51:54 +0000 (21:51 +0100)
usr_share_grml/zsh/functions/purge

index aa5066a..c4e3e8b 100644 (file)
@@ -41,9 +41,9 @@ local CURDIRSUDO=""
 if [[ $NBFILES > 0 ]] ; then
     print -l $FILES
     local ans
-    echo -n "Remove these files? [y/n] "
+    echo -n "Remove these files? [y/N] "
     read -q ans; echo
-    if [[ $ans == "y" ]] ; then
+    if [[ $ans == [yY] ]] ; then
         $CURDIRSUDO rm ${FILES}
         echo ">> $PWD purged, $NBFILES files removed"
     else