mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 16:40:07 -07:00
kiss: Better prompts.
This commit is contained in:
parent
c83f5ab78e
commit
6b19c8f22e
12
kiss
12
kiss
@ -372,12 +372,11 @@ pkg_build() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
log "Building: $*."
|
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'
|
# 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
|
read -r REPLY || exit
|
||||||
[ "$REPLY" = y ] || 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..."
|
||||||
@ -769,14 +768,11 @@ pkg_updates() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
log "Packages to update: ${outdated% }."
|
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'
|
# 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
|
read -r REPLY && pkg_build "$@"
|
||||||
|
|
||||||
# Update any outdated packages if 'y' was inputted above.
|
|
||||||
[ "$REPLY" = y ] && pkg_build "$@"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_caching() {
|
setup_caching() {
|
||||||
|
Loading…
Reference in New Issue
Block a user