diff options
-rw-r--r-- | profiles/common/profile.bashrc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/profiles/common/profile.bashrc b/profiles/common/profile.bashrc index b5fddacf..8f5e5765 100644 --- a/profiles/common/profile.bashrc +++ b/profiles/common/profile.bashrc @@ -45,15 +45,11 @@ function __restore_bash_options () { } function __load_make_conf () { - if (( ${#} == 0 )) ; then + if (( ${#} != 1 )) ; then return 1 fi - source <( - source "${PORTAGE_CONFIGROOT}/etc/portage/make.conf" - declare -p "${@}" 2> /dev/null \ - | sed -e 's/^declare -. /declare -g /' - ) + declare -g "${1}=$(env -i "PATH=${PATH}" portageq envvar ${1})" return $? } |