zsh: purge: make default uppercase
[grml-etc-core.git] / 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