diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-07-12 06:46:51 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-07-12 06:46:51 +0000 |
commit | 85297ef130476ec7b5c06730245f55a884bcc931 (patch) | |
tree | d745e8a6e886c1453896bf5f4f6f890b78d6fe37 | |
parent | 32d37839840820d9def67d3bac320fe0a8cd20dc (diff) | |
download | cpt-85297ef130476ec7b5c06730245f55a884bcc931.tar.gz |
kiss: Better prompts.
FossilOrigin-Name: 752b5dd5e9a3e5e2ea978b98e256df093d9edd58264173f8b1e60bc4a4081dc3
-rwxr-xr-x | kiss | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -372,12 +372,11 @@ pkg_build() { } log "Building: $*." - log "Continue?: [y/n]." + log "Continue?: Press Enter to continue or Ctrl+C to abort here." # POSIX 'read' has none of the "nice" options like '-n', '-p' # etc etc. This is the most basic usage of 'read'. - read -r REPLY - [ "$REPLY" = y ] || exit + read -r REPLY || exit log "Checking to see if any dependencies have already been built..." log "Installing any pre-built dependencies..." @@ -769,14 +768,11 @@ pkg_updates() { } log "Packages to update: ${outdated% }." - log "Update packages?: [y/n]." + log "Update packages?: Press Enter to continue or Ctrl+C to abort here." # POSIX 'read' has none of the "nice" options like '-n', '-p' # etc etc. This is the most basic usage of 'read'. - read -r REPLY - - # Update any outdated packages if 'y' was inputted above. - [ "$REPLY" = y ] && pkg_build "$@" + read -r REPLY && pkg_build "$@" } setup_caching() { |