aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-03 11:38:51 +0000
committermerakor <cem@ckyln.com>2020-05-03 11:38:51 +0000
commit3f01e4a19592ecf8183f35d6623909b574f403d2 (patch)
tree28ce813ac04457dadfc678fa2e23b5f03b9be8f1
parent80291e05cc38c1d7f0013e9a725849e0d2cbfc35 (diff)
downloadcpt-3f01e4a19592ecf8183f35d6623909b574f403d2.tar.gz
kiss: explicitly exit if a prompt doesn't pass
FossilOrigin-Name: a98dc54f204c67ef4e5f9a2212697255c97abe31d8bc1031692ae0b983b4c698
-rwxr-xr-xkiss4
1 files 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