diff options
author | 2021-11-05 05:46:10 -0400 | |
---|---|---|
committer | 2021-11-05 05:46:10 -0400 | |
commit | 1ebf7392b8c06a505f148de8cbe4ad303ed71275 (patch) | |
tree | 926a11ed0381baca6be27909ebd4a3c7c16a7d17 | |
parent | sandbox: move verbose startup info behind debug knob (diff) | |
download | sandbox-1ebf7392b8c06a505f148de8cbe4ad303ed71275.tar.gz sandbox-1ebf7392b8c06a505f148de8cbe4ad303ed71275.tar.bz2 sandbox-1ebf7392b8c06a505f148de8cbe4ad303ed71275.zip |
bashrc: setup T & HOME variables
Current versions of portage don't write these variables to the env
file, so manually set them up ourselves.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | data/sandbox.bashrc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/data/sandbox.bashrc b/data/sandbox.bashrc index ec19459..3b953b8 100644 --- a/data/sandbox.bashrc +++ b/data/sandbox.bashrc @@ -79,7 +79,11 @@ if [[ ${SANDBOX_INTRACTV} == "1" && -t 1 ]] || [[ ${__SANDBOX_TESTING} == "yes" -e '/^[[:alnum:]_-]* ()/Q' "${sbs_tmpenvfile}") 2>/dev/null # Then grab everything (including functions) source "${sbs_tmpenvfile}" 2> /dev/null - export SANDBOX_WRITE=${SANDBOX_WRITE}:${sbs_pdir}${sbs_bdir}:${sbs_pdir}/homedir + # Some variables portage does not write out to th environment. + : "${T:=${sbs_tmpenvfile%/*}}" + HOME=${sbs_pdir}/homedir + SANDBOX_WRITE+=:${sbs_pdir}${sbs_bdir}:${HOME} + export T HOME SANDBOX_WRITE fi PWD=${sbs_PREPWD} fi |