aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-07 18:28:40 +0000
committermerakor <cem@ckyln.com>2020-05-07 18:28:40 +0000
commit2d12d2ffb26d61d7ef10cf2b09da3012a4ef56ae (patch)
treeb7eca7e068929e53a8a8087c842f368e31af2847 /kiss
parent9e140dbcaefcc858a3d01a4385e10249add64fee (diff)
downloadcpt-2d12d2ffb26d61d7ef10cf2b09da3012a4ef56ae.tar.gz
kiss: add option to disable prompts1.20.0
FossilOrigin-Name: b4c88886e87894e335724f4310bdf04eb1830ea8e03b12efd664831a2bcfbc6f
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss7
1 files changed, 6 insertions, 1 deletions
diff --git a/kiss b/kiss
index f53aa71..398091f 100755
--- a/kiss
+++ b/kiss
@@ -39,6 +39,11 @@ contains() {
}
prompt() {
+ # If a KISS_NOPROMPT variable is set, continue.
+ # This can be useful for installation scripts and
+ # bootstrapping.
+ [ "$KISS_NOPROMPT" ] && return 0
+
# Ask the user for some input.
[ "$1" ] && log "$1"
log "Continue?: Press Enter to continue or Ctrl+C to abort here"
@@ -1477,7 +1482,7 @@ args() {
l|list) pkg_list "$@" ;;
u|update) pkg_updates ;;
s|search) for pkg do pkg_find "$pkg" all; done ;;
- v|version) log kiss 1.19.1 ;;
+ v|version) log kiss 1.20.0 ;;
h|help|-h|--help|'')
exec 2>&1