summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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