summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkg')
-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
}
}