diff options
author | merakor <cem@ckyln.com> | 2020-05-03 11:38:51 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-05-03 11:38:51 +0000 |
commit | 3f01e4a19592ecf8183f35d6623909b574f403d2 (patch) | |
tree | 28ce813ac04457dadfc678fa2e23b5f03b9be8f1 | |
parent | 80291e05cc38c1d7f0013e9a725849e0d2cbfc35 (diff) | |
download | cpt-3f01e4a19592ecf8183f35d6623909b574f403d2.tar.gz |
kiss: explicitly exit if a prompt doesn't pass
FossilOrigin-Name: a98dc54f204c67ef4e5f9a2212697255c97abe31d8bc1031692ae0b983b4c698
-rwxr-xr-x | kiss | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |