diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-15 20:05:59 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-15 20:05:59 +0200 |
commit | 7c5acb88d14e30378936f5046874e10ca0718004 (patch) | |
tree | 62404b8523b2a88621ec66fb140b9a422cd84457 | |
parent | ae91c01ad4fd02f283f20007efd118bdc5e67070 (diff) |
pkg: Shortened confirm_yes
-rwxr-xr-x | bin/pkg | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |