summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-05-15 20:05:59 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-05-15 20:05:59 +0200
commit7c5acb88d14e30378936f5046874e10ca0718004 (patch)
tree62404b8523b2a88621ec66fb140b9a422cd84457
parentae91c01ad4fd02f283f20007efd118bdc5e67070 (diff)
pkg: Shortened confirm_yes
-rwxr-xr-xbin/pkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index 63448b1..99296d8 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -187,7 +187,7 @@ function confirm_yes {
echo -n "$* [Y/n] "
read -k 1
[[ $REPLY != $'\n' ]] && echo
- [[ $REPLY == 'y' || $REPLY == 'Y' || $REPLY == $'\n' ]]
+ [[ $REPLY == (y|Y|$'\n') ]]
}
# Default reply: No