mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-01-24 23:08:24 -05:00
16 lines
267 B
Bash
Executable File
16 lines
267 B
Bash
Executable File
#!/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
|