diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-04-16 01:16:50 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-04-16 01:16:50 +0000 |
commit | 8088ca8bbe6b202f7377b28ef29292ebe4aa97ca (patch) | |
tree | ec3844cda30d723551a6fc63c95acea5a8b97dbc /bin/emerge-webrsync | |
parent | c14c076250b5123f52ca4fd64cc32dab7595adf1 (diff) | |
download | portage-8088ca8bbe6b202f7377b28ef29292ebe4aa97ca.tar.gz portage-8088ca8bbe6b202f7377b28ef29292ebe4aa97ca.tar.bz2 portage-8088ca8bbe6b202f7377b28ef29292ebe4aa97ca.zip |
convert `type -p` to `type -P` as noted by grobian (trunk r6410:6411)v2.1.2.4
svn path=/main/branches/2.1.2/; revision=6414
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 36b8e1307..369f473be 100755 --- a/bin/emerge-webrsync +++ b/bin/emerge-webrsync @@ -39,9 +39,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!" @@ -51,7 +51,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]")" |