shutils/tmpl_funcs: do not overwrite $PATH.

This commit is contained in:
Juan RP 2010-05-04 23:49:09 +02:00
parent 69fa39a72f
commit b382fb9c94
1 changed files with 7 additions and 5 deletions

View File

@ -237,11 +237,13 @@ prepare_tmpl()
set_tmpl_common_vars
if [ -z "$in_chroot" ]; then
export PATH="$XBPS_MASTERDIR/bin:$XBPS_MASTERDIR/sbin"
export PATH="$PATH:$XBPS_MASTERDIR/usr/bin"
export PATH="$PATH:$XBPS_MASTERDIR/usr/sbin"
export PATH="$PATH:/bin:/sbin:/usr/bin:/usr/sbin"
export PATH="$PATH:/usr/local/sbin"
local _PATH
_PATH="$XBPS_MASTERDIR/bin:$XBPS_MASTERDIR/sbin"
_PATH="${_PATH}:$XBPS_MASTERDIR/usr/bin"
_PATH="${_PATH}:$XBPS_MASTERDIR/usr/sbin"
_PATH="${_PATH}:/bin:/sbin:/usr/bin:/usr/sbin"
_PATH="${_PATH}:/usr/local/sbin"
export PATH="${_PATH}:${PATH}"
fi
}