| ![[BACK]](/icons/cvsweb/back.gif) Return to rsync-no-vanished CVS log ![[TXT]](/icons/cvsweb/text.gif) | ![[DIR]](/icons/cvsweb/dir.gif) Up to  [ELWIX - Embedded LightWeight unIX -] / embedaddon / rsync / support | 
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