aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-08-11 10:32:03 +0000
committermerakor <cem@ckyln.com>2020-08-11 10:32:03 +0000
commit0cc80d672de808e9c12e5954f528b54deb9441e0 (patch)
tree8839fcadbc12ea541d8c722a08aec1918999ca35 /src
parent36bd86d0a83f252a4e43df6638d6563304571711 (diff)
downloadcpt-0cc80d672de808e9c12e5954f528b54deb9441e0.tar.gz
as_root(): set all variables
FossilOrigin-Name: 3080fa255e1bd180322c52982f03670db7950648279cb49a7b3d8e454a57e534
Diffstat (limited to 'src')
-rw-r--r--src/cpt-lib14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/cpt-lib b/src/cpt-lib
index df3f92d..6a859bb 100644
--- a/src/cpt-lib
+++ b/src/cpt-lib
@@ -79,15 +79,19 @@ as_root() {
# repository paths / access to the same cache directories etc.
set -- HOME="$HOME" \
XDG_CACHE_HOME="$XDG_CACHE_HOME" \
- CPT_PATH="$CPT_PATH" \
+ CPT_CACHE="$CPT_CACHE" \
+ CPT_CHOICE="$CPT_CHOICE" \
+ CPT_COMPRESS="$CPT_COMPRESS" \
+ CPT_DEBUG="$CPT_DEBUG" \
+ CPT_FETCH="$CPT_FETCH" \
CPT_FORCE="$CPT_FORCE" \
CPT_HOOK="$CPT_HOOK" \
+ CPT_KEEPLOG="$CPT_KEEPLOG" \
+ CPT_PATH="$CPT_PATH" \
+ CPT_PID="$CPT_PID" \
+ CPT_PROMPT="$CPT_PROMPT" \
CPT_ROOT="$CPT_ROOT" \
- CPT_CHOICE="$CPT_CHOICE" \
- CPT_CACHE="$CPT_CACHE" \
CPT_TMPDIR="$CPT_TMPDIR" \
- CPT_HOOK="$CPT_HOOK" \
- CPT_PID="$CPT_PID" \
"$@"
case ${su##*/} in