From e5338871bb0c169efd7e1b91fd07790c902a91bf Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 12 Apr 2009 12:01:00 +0200 Subject: pkg: Shortened confirm_yes --- bin/pkg | 6 +----- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3