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/prepall | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/prepall') diff --git a/bin/prepall b/bin/prepall index 3ab821573..aeafc766b 100755 --- a/bin/prepall +++ b/bin/prepall @@ -5,7 +5,7 @@ source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh -if type -p chflags &>/dev/null && type -p mtree &>/dev/null; then +if type -P chflags > /dev/null && type -P mtree > /dev/null ; then # Save all the file flags for restoration at the end of prepall. mtree -c -p "${D}" -k flags > "${T}/bsdflags.mtree" # Remove all the file flags so that prepall can do anything necessary. @@ -17,7 +17,7 @@ prepallman prepallinfo prepallstrip -if type -p chflags &>/dev/null && type -p mtree &>/dev/null; then +if type -P chflags > /dev/null && type -P mtree > /dev/null; then # Restore all the file flags that were saved at the beginning of prepall. mtree -U -e -p "${D}" -k flags < "${T}/bsdflags.mtree" &> /dev/null fi -- cgit v1.2.3-1-g7c22