From 6134d5d02f352d7e1bf7f6d5ca50692386250ff1 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 25 May 2020 12:50:42 +0300 Subject: [PATCH] kiss: Correctly quote $\# --- kiss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiss b/kiss index 99e1fa4..6b246db 100755 --- a/kiss +++ b/kiss @@ -615,7 +615,7 @@ pkg_build() { log "Building: $*" # Only ask for confirmation if more than one package needs to be built. - [ $# -gt 1 ] || [ "$pkg_update" ] && prompt + [ "$#" -gt 1 ] || [ "$pkg_update" ] && prompt for pkg do pkg_lint "$pkg"; done @@ -714,7 +714,7 @@ pkg_build() { set -- $explicit # Only ask for confirmation if more than one package needs to be installed. - [ $# -gt 1 ] && prompt "Install built packages? [$*]" && { + [ "$#" -gt 1 ] && prompt "Install built packages? [$*]" && { args i "$@" return }