commit:     6910d50097acba1549cde0b1e6d5d6f6169a6dc3
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Tue May  4 08:48:50 2021 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Tue May  4 08:48:50 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=6910d500

sandbox.bashrc: use modern location of /lib/gentoo/functions.sh

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

 data/sandbox.bashrc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/data/sandbox.bashrc b/data/sandbox.bashrc
index 60bef0e..e3421e6 100644
--- a/data/sandbox.bashrc
+++ b/data/sandbox.bashrc
@@ -28,8 +28,8 @@ if [[ ${SANDBOX_INTRACTV} == "1" && -t 1 ]] || [[ 
${__SANDBOX_TESTING} == "yes"
                (
                [[ ${NOCOLOR} == "true" || ${NOCOLOR} == "yes" || ${NOCOLOR} == 
"1" ]] && \
                        export RC_NOCOLOR="yes"
-               source /etc/init.d/functions.sh
-               if [ $? -ne 0 ] ; then
+               source /lib/gentoo/functions.sh
+               if [[ $? -ne 0 ]] ; then
                        einfo() { echo " INFO: $*"; }
                        ewarn() { echo " WARN: $*"; }
                        eerror() { echo " ERR: $*"; }

Reply via email to