aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-27 11:42:28 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-27 11:42:28 +0000
commit4ef971c0e4f55ced71a17432705093c09d05fc04 (patch)
tree2ec23c2d9948bca2270ac7200106fafe4d19e070
parentbc9688e0a6f424f903565bd75e94cbaa774c5675 (diff)
downloadcpt-4ef971c0e4f55ced71a17432705093c09d05fc04.tar.gz
kiss: prompt for password before multi-build
FossilOrigin-Name: 29d537a5ad6bcb9116c64918af7a8a3e2b36732d009ded8541296d3a8d921570
-rwxr-xr-xkiss6
1 files changed, 5 insertions, 1 deletions
diff --git a/kiss b/kiss
index bd95417..7d49ca7 100755
--- a/kiss
+++ b/kiss
@@ -479,7 +479,11 @@ pkg_build() {
log "Building: $*"
# Only ask for confirmation if more than one package needs to be built.
- [ $# -gt 1 ] || [ "$pkg_update" ] && prompt
+ [ $# -gt 1 ] || [ "$pkg_update" ] && {
+ prompt
+
+ [ "$pass" ] || root_cache
+ }
log "Checking to see if any dependencies have already been built"
log "Installing any pre-built dependencies"