commit be36eaa154e4afc184ac6e67189901cedb7960eb
parent 451aa6c20f0705ffe9b9a831d10b133f8587f93a
Author: Cem Keylan <cem@ckyln.com>
Date: Sun, 3 May 2020 14:38:51 +0300
kiss: explicitly exit if a prompt doesn't pass
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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