aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-09-25 09:26:12 +0000
committermerakor <cem@ckyln.com>2020-09-25 09:26:12 +0000
commit5ea86b0232ed5f5ff3a4513ec4b30929d5cf245f (patch)
treeec58f584222f2e8e5f3f267ecd5f5d6a5f1d4895
parent676b7ab880431da3ce84ff47f31f1b536c32c623 (diff)
downloadcpt-5ea86b0232ed5f5ff3a4513ec4b30929d5cf245f.tar.gz
as_root(): change USER variable
FossilOrigin-Name: 472d451a30b2626be4db9e65c80f1ce9b26504e86570b9e21b20477d88c210e9
-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" \