diff options
author | merakor <cem@ckyln.com> | 2020-09-25 09:26:12 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-09-25 09:26:12 +0000 |
commit | 5ea86b0232ed5f5ff3a4513ec4b30929d5cf245f (patch) | |
tree | ec58f584222f2e8e5f3f267ecd5f5d6a5f1d4895 /src | |
parent | 676b7ab880431da3ce84ff47f31f1b536c32c623 (diff) | |
download | cpt-5ea86b0232ed5f5ff3a4513ec4b30929d5cf245f.tar.gz |
as_root(): change USER variable
FossilOrigin-Name: 472d451a30b2626be4db9e65c80f1ce9b26504e86570b9e21b20477d88c210e9
Diffstat (limited to 'src')
-rw-r--r-- | src/cpt-lib | 1 |
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" \ |