From 8088ca8bbe6b202f7377b28ef29292ebe4aa97ca Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 16 Apr 2007 01:16:50 +0000 Subject: convert `type -p` to `type -P` as noted by grobian (trunk r6410:6411) svn path=/main/branches/2.1.2/; revision=6414 --- bin/ebuild.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/ebuild.sh') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index f9cc6b6f2..92f75455c 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -524,7 +524,7 @@ econf() { local TMP_CONFCACHE_DIR CONFCACHE_ARG if hasq confcache $FEATURES && ! hasq confcache $RESTRICT; then - CONFCACHE="$(type -p confcache)" + CONFCACHE="$(type -P confcache)" if [ -z "${CONFCACHE}" ]; then ewarn "disabling confcache, binary cannot be found" else @@ -762,7 +762,7 @@ dyn_clean() { return 1 fi - if type -p chflags &>/dev/null; then + if type -P chflags > /dev/null ; then chflags -R noschg,nouchg,nosappnd,nouappnd "${PORTAGE_BUILDDIR}" chflags -R nosunlnk,nouunlnk "${PORTAGE_BUILDDIR}" 2>/dev/null fi @@ -1480,7 +1480,7 @@ QA_INTERCEPTORS="javac java-config python python-config perl grep egrep fgrep se # level the QA interceptors if we're in depend if hasq "depend" "${EBUILD_SH_ARGS}"; then for BIN in ${QA_INTERCEPTORS}; do - BIN_PATH=$(type -pf ${BIN}) + BIN_PATH=$(type -Pf ${BIN}) if [ "$?" != "0" ]; then BODY="echo \"*** missing command: ${BIN}\" >&2; return 127" else -- cgit v1.2.3-1-g7c22