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

This commit is contained in:
Dylan Araps 2019-07-13 23:22:36 +03:00
parent 6b19c8f22e
commit bd79daab8b

12
kiss
View File

@ -372,11 +372,15 @@ pkg_build() {
} }
log "Building: $*." 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' # Only ask for confirmation if more than one package needs to be built.
# etc etc. This is the most basic usage of 'read'. [ $# -gt 1 ] && {
read -r REPLY || exit 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 "Checking to see if any dependencies have already been built..."
log "Installing any pre-built dependencies..." log "Installing any pre-built dependencies..."