diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-04-15 09:32:30 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-04-15 09:32:30 +0000 |
commit | 11cbb6ebec83d94fa87ddc023250cd9007d76687 (patch) | |
tree | 89577f1b994935344b8dc570c6c29fd5bbc3e959 /bin/misc-functions.sh | |
parent | cef81d8d665b1e7fd958ae80716ff34fbbe67150 (diff) | |
download | portage-11cbb6ebec83d94fa87ddc023250cd9007d76687.tar.gz portage-11cbb6ebec83d94fa87ddc023250cd9007d76687.tar.bz2 portage-11cbb6ebec83d94fa87ddc023250cd9007d76687.zip |
convert `type -p` to `type -P` as noted by grobian
svn path=/main/trunk/; revision=6411
Diffstat (limited to 'bin/misc-functions.sh')
-rwxr-xr-x | bin/misc-functions.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 51c52c3e0..d7aa9b05f 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -55,7 +55,7 @@ install_qa_check() { sleep 1 done - if type -p scanelf > /dev/null && ! hasq binchecks ${RESTRICT}; then + if type -P scanelf > /dev/null && ! hasq binchecks ${RESTRICT}; then local qa_var insecure_rpath=0 tmp_quiet=${PORTAGE_QUIET} # display warnings when using stricter because we die afterwards @@ -370,8 +370,8 @@ install_mask() { } preinst_bsdflags() { - type -p chflags &>/dev/null || return 0 - type -p mtree &>/dev/null || return 1 + type -P chflags > /dev/null || return 0 + type -P mtree > /dev/null || return 1 # Save all the file flags for restoration after installation. mtree -c -p "${D}" -k flags > "${T}/bsdflags.mtree" # Remove all the file flags so that the merge phase can do anything @@ -381,8 +381,8 @@ preinst_bsdflags() { } postinst_bsdflags() { - type -p chflags &>/dev/null || return 0 - type -p mtree &>/dev/null || return 1 + type -P chflags > /dev/null || return 0 + type -P mtree > /dev/null || return 1 # Restore all the file flags that were saved before installation. mtree -e -p "${ROOT}" -U -k flags < "${T}/bsdflags.mtree" &> /dev/null } |