diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-12 12:01:00 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-12 12:01:00 +0200 |
commit | e5338871bb0c169efd7e1b91fd07790c902a91bf (patch) | |
tree | aabd248a88063e73907a8fff48be03cdbda91dba | |
parent | 69b0dbc57c7cd1e1757bcfc48c882bbfe95c476c (diff) |
pkg: Shortened confirm_yes
-rwxr-xr-x | bin/pkg | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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 |