From f7bcc608afd6d4597bb7e4563080f503ef564a4e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 22 Jan 2009 10:20:41 +0100 Subject: pkg: check_prereqs: Removed unneccessary subshells --- bin/pkg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/pkg') 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 } } -- cgit v1.2.3