chown: use locations from configure
authorFabian Groffen <grobian@gentoo.org>
Sun, 30 Sep 2012 11:22:07 +0000 (13:22 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sun, 30 Sep 2012 11:22:07 +0000 (13:22 +0200)
bin/ebuild-helpers/unprivileged/chown

index cad34d947cf7bb604f2f6f2f9086ff8ea8764ac2..2a60b5810f1327fa9bfdc49b4632e8b0602316b3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!@PORTAGE_BASH@
 # Copyright 2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
@@ -13,7 +13,7 @@ for path in ${PATH}; do
        IFS=$' \t\n'
        output=$("${path}/${scriptname}" "$@" 2>&1)
        if [[ $? -ne 0 ]] ; then
-               source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
+               source "${PORTAGE_BIN_PATH:-@PORTAGE_BASE@/bin}"/isolated-functions.sh
 
                if ! ___eapi_has_prefix_variables; then
                        EPREFIX=