summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-12 12:01:00 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-12 12:01:00 +0200
commite5338871bb0c169efd7e1b91fd07790c902a91bf (patch)
treeaabd248a88063e73907a8fff48be03cdbda91dba
parent69b0dbc57c7cd1e1757bcfc48c882bbfe95c476c (diff)
pkg: Shortened confirm_yes
-rwxr-xr-xbin/pkg6
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/pkg b/bin/pkg
index 59fd29b..95a2a08 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -177,11 +177,7 @@ function confirm_yes {
echo -n "$* [Y/n] "
read -k 1
[[ $REPLY != $'\n' ]] && echo
- if [[ $REPLY == 'y' || $REPLY == 'Y' || $REPLY == $'\n' ]] {
- true
- } else {
- false
- }
+ [[ $REPLY == 'y' || $REPLY == 'Y' || $REPLY == $'\n' ]]
}
# Default reply: No