aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cpt-lib1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpt-lib b/src/cpt-lib
index f71a7da..7905ffb 100644
--- a/src/cpt-lib
+++ b/src/cpt-lib
@@ -318,6 +318,7 @@ as_root() {
# We are exporting package manager variables, so that we still have the same
# repository paths / access to the same cache directories etc.
set -- HOME="$HOME" \
+ USER="$user" \
XDG_CACHE_HOME="$XDG_CACHE_HOME" \
CPT_CACHE="$CPT_CACHE" \
CPT_CHOICE="$CPT_CHOICE" \