diff options
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]")" |