diff options
author | 2003-07-10 02:00:54 +0000 | |
---|---|---|
committer | 2003-07-10 02:00:54 +0000 | |
commit | 5068ce1029d0c56a4ec7def0ffe5b6f7a13bcf61 (patch) | |
tree | a0306faf10d13ce206f6a71901cf8277abe75c2d /app-shells/sandboxshell/files | |
parent | make sure to source right env (diff) | |
download | gentoo-2-5068ce1029d0c56a4ec7def0ffe5b6f7a13bcf61.tar.gz gentoo-2-5068ce1029d0c56a4ec7def0ffe5b6f7a13bcf61.tar.bz2 gentoo-2-5068ce1029d0c56a4ec7def0ffe5b6f7a13bcf61.zip |
and setup portage env correctly
Diffstat (limited to 'app-shells/sandboxshell/files')
-rw-r--r-- | app-shells/sandboxshell/files/sandboxshell.conf | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app-shells/sandboxshell/files/sandboxshell.conf b/app-shells/sandboxshell/files/sandboxshell.conf index d64150566dff..e9e4440894dc 100644 --- a/app-shells/sandboxshell/files/sandboxshell.conf +++ b/app-shells/sandboxshell/files/sandboxshell.conf @@ -1,7 +1,7 @@ #!/bin/bash # Written by vapier@gentoo.org # public-domain code ... z0r ... -# $Header: /var/cvsroot/gentoo-x86/app-shells/sandboxshell/files/sandboxshell.conf,v 1.2 2003/07/10 01:56:47 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-shells/sandboxshell/files/sandboxshell.conf,v 1.3 2003/07/10 02:00:45 vapier Exp $ source /etc/profile @@ -25,10 +25,13 @@ if [ "${PWD:0:${#sbs_pdir}}" == "${sbs_pdir}" ] ; then sbs_tmpenvfile=${sbs_pdir}${sbs_bdir}/temp/environment if [ -e "${sbs_tmpenvfile}" ] ; then echo "Found environment at ${sbs_tmpenvfile}" - printf " * Would you like to load the environment? " + printf " * Would you like to enter the portage environment ? " read env sbs_PREPWD=${PWD} - [ "${env}" == "y" ] && source ${sbs_tmpenvfile} 2> /dev/null + if [ "${env}" == "y" ] ; then + source ${sbs_tmpenvfile} 2> /dev/null + export SANDBOX_WRITE="${SANDBOX_WRITE}:${sbs_pdir}${sbs_bdir}" + fi PWD=${sbs_PREPWD} fi fi |