mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-03-10 10:27:13 -04:00
16 lines
275 B
Bash
Executable File
16 lines
275 B
Bash
Executable File
#!/usr/bin/env 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
|