summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-01-22 10:20:41 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-01-22 10:20:41 +0100
commitf7bcc608afd6d4597bb7e4563080f503ef564a4e (patch)
tree8c7ab6012eb9f34832276a2bc01257c1d0075b67
parent06f7f3a98baa4c2e4802889121f194b1f7c98b28 (diff)
pkg: check_prereqs: Removed unneccessary subshells
-rwxr-xr-xbin/pkg8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/pkg b/bin/pkg
index d3e08c6..ca09a53 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -455,19 +455,19 @@ function check_prereqs {
if [[ -n $install ]] {
info "$1 requires the following packages: ${(j:, :)install}\n"
- if (confirm_yes "Install them?") {
+ if confirm_yes "Install them?"; then
for i in $install; {
pkg_add $i
}
- }
+ fi
}
if [[ -n $maybe_install ]] {
info "$1 recommends the following packages: ${(j:, :)maybe_install}\n"
- if (confirm_no "Install them?") {
+ if confirm_no "Install them?"; then
for i in $maybe_install; {
pkg_add $i
}
- }
+ fi
}
}