From d25fe5841ab24f4f3a081652978c023308006ed8 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 11 Jun 2020 11:30:11 +0300 Subject: [PATCH] kiss: simplify part of pkg_build() --- kiss | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/kiss b/kiss index b8f14d3..a217470 100755 --- a/kiss +++ b/kiss @@ -656,23 +656,19 @@ pkg_build() { (KISS_FORCE=1 args i "$pkg") done - # End here as this was a system update and all packages have been installed. - [ "$pkg_update" ] && return - - log "Successfully built package(s)" - - # Turn the explicit packages into a 'list'. - # See [1] at top of script. + # Turn the explicit packages into a 'list'. See [1] at top of script. # shellcheck disable=2046,2086 set -- $explicit - # Only ask for confirmation if more than one package needs to be installed. - [ "$#" -gt 1 ] && prompt "Install built packages? [$*]" && { - args i "$@" + if [ "$pkg_update" ]; then return - } - log "Run 'kiss i $*' to install the package(s)" + elif [ "$#" -gt 1 ] && prompt "Install built packages? [$*]"; then + args i "$@" + + else + log "Run 'kiss i $*' to install the package(s)" + fi } pkg_checksums() {