diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-07-13 22:18:07 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-07-13 22:18:07 +0000 |
commit | acc668c84addd606918b2760ec13f28bb81cf063 (patch) | |
tree | 975790e470e3a74e32068082fe057c90917b2058 | |
parent | 34383cf0407d1a72cf0afd9f7af16d1db5166e5e (diff) | |
download | cpt-acc668c84addd606918b2760ec13f28bb81cf063.tar.gz |
misc: change
FossilOrigin-Name: cdf028c155fbd9628a7c2cdccb61f77ffe9d49c88419f05920f534bfda3b4f21
-rwxr-xr-x | kiss | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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 } |