aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md10
-rwxr-xr-xkiss21
2 files changed, 19 insertions, 12 deletions
diff --git a/README.md b/README.md
index ec0e151..c9e29af 100644
--- a/README.md
+++ b/README.md
@@ -8,16 +8,6 @@ Tiny package manager for KISS Linux.
See: <https://getkiss.org/pages/package-system/>
-## Getting started
-
-Add these to your `shellrc`.
-
-```sh
-# The location to install packages (Optional).
-# Default: /
-export KISS_ROOT=~/.kiss
-```
-
## Usage
```sh
diff --git a/kiss b/kiss
index c59922b..7dd20de 100755
--- a/kiss
+++ b/kiss
@@ -505,7 +505,24 @@ pkg_build() {
done
log "Successfully built package(s)."
- log "Run 'kiss i${explicit_packages% }' to install the built package(s)."
+
+ # Turn the explicit packages into a 'list'.
+ set -- $explicit_packages
+
+ # Only ask for confirmation if more than one package needs to be installed.
+ [ $# -gt 1 ] && {
+ log "Install built packages? [$*]" \
+ "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 && {
+ args i "$@"
+ return
+ }
+ }
+
+ log "Run 'kiss i $*' to install the built package(s)."
}
pkg_checksums() {
@@ -828,7 +845,7 @@ pkg_updates() {
# Turn the string of outdated packages into a 'list'.
set -- $outdated
- log "Packages to update: ${outdated% }."
+ log "Packages to update: $*."
# Tell 'pkg_build' to always prompt before build.
build_prompt=1