projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zsh: keybindings: unify case ++
[grml-etc-core.git]
/
usr_share_grml
/
zsh
/
functions
/
purge
diff --git
a/usr_share_grml/zsh/functions/purge
b/usr_share_grml/zsh/functions/purge
index
aa5066a
..
c4e3e8b
100644
(file)
--- 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
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
read -q ans; echo
- if [[ $ans ==
"y"
]] ; then
+ if [[ $ans ==
[yY]
]] ; then
$CURDIRSUDO rm ${FILES}
echo ">> $PWD purged, $NBFILES files removed"
else
$CURDIRSUDO rm ${FILES}
echo ">> $PWD purged, $NBFILES files removed"
else