From 3f01e4a19592ecf8183f35d6623909b574f403d2 Mon Sep 17 00:00:00 2001 From: merakor Date: Sun, 3 May 2020 11:38:51 +0000 Subject: kiss: explicitly exit if a prompt doesn't pass FossilOrigin-Name: a98dc54f204c67ef4e5f9a2212697255c97abe31d8bc1031692ae0b983b4c698 --- kiss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiss b/kiss index 844ad9a..7ac64dc 100755 --- a/kiss +++ b/kiss @@ -573,7 +573,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 || exit 0 ;} log "Checking for pre-built dependencies" @@ -1221,7 +1221,7 @@ pkg_updates(){ log "Detected package manager update" log "The package manager will be updated first" - prompt + prompt || exit 0 pkg_build kiss args i kiss -- cgit v1.2.3