cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit bd79daab8b79a27c98d197639ec37bc0988a0ebe
parent 6b19c8f22e1e35951cde33fff635372c91d5416f
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Sat, 13 Jul 2019 23:22:36 +0300

kiss: Only ask for confirmation if more than one package needs to be built.

Diffstat:
Mkiss | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/kiss b/kiss @@ -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..."