Annotation of embedaddon/rsync/support/rsync-no-vanished, revision 1.1.1.2

1.1.1.2 ! misho       1: #!/usr/bin/env bash
1.1       misho       2: 
                      3: IGNOREEXIT=24
                      4: IGNOREOUT='^(file has vanished: |rsync warning: some files vanished before they could be transferred)'
                      5: 
                      6: set -o pipefail
                      7: 
                      8: rsync "${@}" 2>&1 | (egrep -v "$IGNOREOUT" || true)
                      9: ret=$?
                     10: 
                     11: if [[ $ret == $IGNOREEXIT ]]; then
                     12:     ret=0
                     13: fi
                     14: 
                     15: exit $ret

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>