From acc668c84addd606918b2760ec13f28bb81cf063 Mon Sep 17 00:00:00 2001
From: "dylan.araps@gmail.com" <dylan.araps@gmail.com>
Date: Sat, 13 Jul 2019 22:18:07 +0000
Subject: misc: change

FossilOrigin-Name: cdf028c155fbd9628a7c2cdccb61f77ffe9d49c88419f05920f534bfda3b4f21
---
 kiss | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/kiss b/kiss
index 4b9a44d..dd687fa 100755
--- a/kiss
+++ b/kiss
@@ -393,7 +393,7 @@ pkg_build() {
     log "Building: $*."
 
     # Only ask for confirmation if more than one package needs to be built.
-    [ $# -gt 1 ] || [ "$mode_update" ] && {
+    [ $# -gt 1 ] || [ "$build_prompt" ] && {
         log "Continue?: Press Enter to continue or Ctrl+C to abort here."
 
         # POSIX 'read' has none of the "nice" options like '-n', '-p'
@@ -793,7 +793,7 @@ pkg_updates() {
     log "Packages to update: ${outdated% }."
 
     # Tell 'pkg_build' to always prompt before build.
-    mode_update=1
+    build_prompt=1
 
     # POSIX 'read' has none of the "nice" options like '-n', '-p'
     # etc etc. This is the most basic usage of 'read'.
@@ -872,12 +872,11 @@ args() {
             [ "$1" ] || {
                 cd "$KISS_ROOT/var/db/kiss" || die "Failed to find package db."
 
-                # Use a glob after 'cd' to generate a list of all
-                # installed packages based on directory names.
+                # Use a glob after 'cd' to generate a list of all installed
+                # packages based on directory names.
                 set -- *
 
-                # Undo the above 'cd' to ensure we stay in the same
-                # location.
+                # Undo the above 'cd' to ensure we stay in the same location.
                 cd - >/dev/null
             }
 
-- 
cgit v1.2.3