diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-01-22 10:20:41 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-01-22 10:20:41 +0100 |
commit | f7bcc608afd6d4597bb7e4563080f503ef564a4e (patch) | |
tree | 8c7ab6012eb9f34832276a2bc01257c1d0075b67 /bin | |
parent | 06f7f3a98baa4c2e4802889121f194b1f7c98b28 (diff) |
pkg: check_prereqs: Removed unneccessary subshells
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 } } |