X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_share_grml%2Fzsh%2Ffunctions%2Fpurge;h=c4e3e8bccf6d9727a987288a22d4a6f824a08f90;hb=82921ea7f7c752a1163f99f1022ee40da0652af9;hp=aa5066a6279e9a2880da615b4ad67777a3e7e5f5;hpb=af1880477d99f931a695a9ea316d9ebf1ea53129;p=grml-etc-core.git diff --git a/usr_share_grml/zsh/functions/purge b/usr_share_grml/zsh/functions/purge index aa5066a..c4e3e8b 100644 --- a/usr_share_grml/zsh/functions/purge +++ b/usr_share_grml/zsh/functions/purge @@ -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