mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 16:40:07 -07:00
kiss: Only ask for confirmation if more than one package needs to be built.
This commit is contained in:
parent
6b19c8f22e
commit
bd79daab8b
4
kiss
4
kiss
@ -372,11 +372,15 @@ pkg_build() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
log "Building: $*."
|
log "Building: $*."
|
||||||
|
|
||||||
|
# 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."
|
log "Continue?: Press Enter to continue or Ctrl+C to abort here."
|
||||||
|
|
||||||
# POSIX 'read' has none of the "nice" options like '-n', '-p'
|
# POSIX 'read' has none of the "nice" options like '-n', '-p'
|
||||||
# etc etc. This is the most basic usage of 'read'.
|
# etc etc. This is the most basic usage of 'read'.
|
||||||
read -r REPLY || exit
|
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..."
|
||||||
|
Loading…
Reference in New Issue
Block a user