diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-07-13 20:22:35 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-07-13 20:22:35 +0000 |
commit | fe8c1fcfeff7a5552513fc17d1b7d6e902b326b4 (patch) | |
tree | 2674d1f0ddb55c48fe55ea31d8e5c789912bf8d8 /kiss | |
parent | 85297ef130476ec7b5c06730245f55a884bcc931 (diff) | |
download | cpt-fe8c1fcfeff7a5552513fc17d1b7d6e902b326b4.tar.gz |
kiss: Only ask for confirmation if more than one package needs to be built.
FossilOrigin-Name: aa231b61851ea7cb502b17a4dbfc056985f3b4f57cae7fb0584833cbf83ec697
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -372,11 +372,15 @@ pkg_build() { } log "Building: $*." - 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 || exit + # Only ask for confirmation if more than one package needs to be built. + [ $# -gt 1 ] && { + 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 || exit + } log "Checking to see if any dependencies have already been built..." log "Installing any pre-built dependencies..." |