From: Wayne Davison Date: Wed, 1 Jan 2014 18:35:08 +0000 (-0800) Subject: Adding rsync-no-vanished script for bug 10356. X-Git-Tag: v3.1.1pre1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b29458ea404da41dfb8b668351909be1221a6e9;p=thirdparty%2Frsync.git Adding rsync-no-vanished script for bug 10356. --- diff --git a/support/rsync-no-vanished b/support/rsync-no-vanished new file mode 100755 index 00000000..1cce75cb --- /dev/null +++ b/support/rsync-no-vanished @@ -0,0 +1,15 @@ +#!/bin/bash + +IGNOREEXIT=24 +IGNOREOUT='^(file has vanished: |rsync warning: some files vanished before they could be transferred)' + +set -o pipefail + +rsync "${@}" 2>&1 | (egrep -v "$IGNOREOUT" || true) +ret=$? + +if [[ $ret == $IGNOREEXIT ]]; then + ret=0 +fi + +exit $ret