mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit 90dfcc193b5c465f181bc613e3300acd47f19f34
parent f365edf4f1ea98b78829457574bff983fde3b215
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Tue, 26 Jan 2016 09:51:56 +0100

rsync-no-vanished

Diffstat:
rsync-no-vanished | 20++++++++++++++++++++
1 file changed, 20 insertions(+), 0 deletions(-)

diff --git a/rsync-no-vanished b/rsync-no-vanished @@ -0,0 +1,20 @@ +#!/bin/bash + +# https://bugzilla.samba.org/show_bug.cgi?id=10356 +# support/rsync-no-vanished + + +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 +