commit:     17706021b4acff1ce309e95e93eb135ecec6e1b5
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Tue May  4 08:47:20 2021 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Tue May  4 08:47:20 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=17706021

sandbox.bashrc: handle rest of CCACHE users the same as root

Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 data/sandbox.bashrc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data/sandbox.bashrc b/data/sandbox.bashrc
index 252e0aa..60bef0e 100644
--- a/data/sandbox.bashrc
+++ b/data/sandbox.bashrc
@@ -102,7 +102,7 @@ if [[ ${SANDBOX_INTRACTV} == "1" && -t 1 ]] || [[ 
${__SANDBOX_TESTING} == "yes"
        sandboxon()  { export SANDBOX_ON="1" ; }
        sandboxoff() { export SANDBOX_ON="0" ; }
 
-       [[ -z ${CCACHE_DIR} ]] && [[ -w /root/.ccache ]] && export 
CCACHE_DIR=/root/.ccache
+       [[ -z ${CCACHE_DIR} ]] && [[ -w $HOME/.ccache ]] && export 
CCACHE_DIR=$HOME/.ccache
        for var in CCACHE_DIR DISTCC_DIR ; do
                [[ ${!var+set} == "set" ]] && addwrite ${!var}
        done

Reply via email to