git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3414a7
)
Adding rsync-no-vanished script for bug 10356.
author
Wayne Davison
<wayned@samba.org>
Wed, 1 Jan 2014 18:35:08 +0000
(10:35 -0800)
committer
Wayne Davison
<wayned@samba.org>
Wed, 1 Jan 2014 18:35:08 +0000
(10:35 -0800)
support/rsync-no-vanished
[new file with mode: 0755]
patch
|
blob
diff --git a/support/rsync-no-vanished
b/support/rsync-no-vanished
new file mode 100755
(executable)
index 0000000..
1cce75c
--- /dev/null
+++ b/
support/rsync-no-vanished
@@ -0,0
+1,15
@@
+#!/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