Improve the options info a bit more.
[rsync.git] / support / rsync-no-vanished
blobcc3c29ce6fa7ec3c0cd5ffd2a4a3040b62fde07f
1 #!/usr/bin/env bash
3 IGNOREEXIT=24
4 IGNOREOUT='^(file has vanished: |rsync warning: some files vanished before they could be transferred)'
6 set -o pipefail
8 rsync "${@}" 2>&1 | (egrep -v "$IGNOREOUT" || true)
9 ret=$?
11 if [[ $ret == $IGNOREEXIT ]]; then
12 ret=0
15 exit $ret