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/emerge-webrsync | |
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/emerge-webrsync')
-rwxr-xr-x | bin/emerge-webrsync | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync index 7602deab5..01e7ae554 100755 --- a/bin/emerge-webrsync +++ b/bin/emerge-webrsync @@ -38,9 +38,9 @@ else fi fi -if type -p md5sum > /dev/null; then +if type -P md5sum > /dev/null; then md5_com='md5sum -c "${FILE}.md5sum"' -elif type -p md5 > /dev/null; then +elif type -P md5 > /dev/null; then md5_com='[ "$(md5 -q ${FILE})" == "$(cut -d \ -f 1 ${FILE}.md5sum)" ]' else echo "warning, unable to do md5 verification of the snapshot!" @@ -50,7 +50,7 @@ fi sync_local() { echo Syncing local tree... - if type -p tarsync &> /dev/null; then + if type -P tarsync &> /dev/null; then # tarsync doesn't take numeric uid/gid so we need to convert them. local inst_user="$(python -c "import pwd; print pwd.getpwuid(int('${PORTAGE_INST_UID:-0}'))[0]")" local inst_group="$(python -c "import grp; print grp.getgrgid(int('${PORTAGE_INST_GID:-0}'))[0]")" |