diff options
Diffstat (limited to 'app-shells/sandboxshell/files/sandboxshell.conf')
-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 |