We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8071484 commit 5cad4fcCopy full SHA for 5cad4fc
1 file changed
libexec/ghe-rsync
@@ -7,11 +7,13 @@
7
8
set -o pipefail
9
10
-# Filter vanished file warnings from stderr. The complex redirections are
11
-# necessary to filter stderr while also keeping stdout and stderr separated.
+# Filter vanished file warnings from both stdout (rsync versions < 3.x) and
+# stderr (rsync versions >= 3.x). The complex redirections are necessary to
12
+# filter stderr while also keeping stdout and stderr separated.
13
IGNOREOUT='^(file has vanished: |rsync warning: some files vanished before they could be transferred)'
14
(rsync "${@}" 3>&1 1>&2 2>&3 3>&- |
- (egrep -v "$IGNOREOUT" || true)) 3>&1 1>&2 2>&3 3>&-
15
+ (egrep -v "$IGNOREOUT" || true)) 3>&1 1>&2 2>&3 3>&- |
16
+ (egrep -v "$IGNOREOUT" || true)
17
res=$?
18
19
# rsync exits with 24 when vanished files are detected.
0 commit comments