diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2015-11-22 20:08:52 +0000 |
---|---|---|
committer | Bertrand Jacquin <bertrand@jacquin.bzh> | 2015-11-22 22:26:55 +0000 |
commit | 24112a8480829a0ac5f4e7f94079a1d687db20da (patch) | |
tree | b2d4933e41075143971f3f4093708416e1af6d4a /profiles/common | |
parent | app-admin/hp-snmp-agents: Symlink /usr/bin/pidof if exist for recent procps (diff) | |
download | portage-24112a8480829a0ac5f4e7f94079a1d687db20da.tar.xz |
profiles/common: Use BASH_SOURCE to determine profile path
Diffstat (limited to 'profiles/common')
-rw-r--r-- | profiles/common/profile.bashrc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profiles/common/profile.bashrc b/profiles/common/profile.bashrc index abde05ca..a0ef1d38 100644 --- a/profiles/common/profile.bashrc +++ b/profiles/common/profile.bashrc @@ -182,7 +182,7 @@ function __drop-empty-dir () { } function __install_own_file () { - local _PROFILE_PATH="$("${PORTAGE_BIN_PATH}/ebuild-helpers/portageq" get_repo_path "${EROOT:-/}" as29)" + local _PROFILE_PATH="${BASH_SOURCE[0]%/profiles*}" if [[ $? != 0 || ! ${_PROFILE_PATH} ]] ; then return 1 |