repo.or.cz
/
rsync.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Improve the options info a bit more.
[rsync.git]
/
support
/
rsync-no-vanished
blob
cc3c29ce6fa7ec3c0cd5ffd2a4a3040b62fde07f
1
#!/usr/bin/env bash
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