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/emerge-webrsync | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/emerge-webrsync') 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]")" -- cgit v1.2.3-1-g7c22