From 0cc80d672de808e9c12e5954f528b54deb9441e0 Mon Sep 17 00:00:00 2001 From: merakor Date: Tue, 11 Aug 2020 10:32:03 +0000 Subject: as_root(): set all variables FossilOrigin-Name: 3080fa255e1bd180322c52982f03670db7950648279cb49a7b3d8e454a57e534 --- src/cpt-lib | 14 +++++++++----- 1 file 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 -- cgit v1.2.3