From ea18c88f7467550da6c20795a5e3b7693c9da499 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 28 Jun 2021 12:44:18 +0000 Subject: [PATCH] kiss: simplify prompt --- kiss | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/kiss b/kiss index 39b1504..65d3996 100755 --- a/kiss +++ b/kiss @@ -753,15 +753,7 @@ pkg_build() { # shellcheck disable=2046,2086 set -- $explicit - if [ "$pkg_update" ]; then - return - - elif [ "$#" -gt 1 ] && prompt "Install built packages? [$*]"; then - args i "$@" - - else - log "Run 'kiss i $*' to install the package(s)" - fi + [ "$pkg_update" ] || prompt "Install built packages? [$*]" && args i "$@" } pkg_checksums() {