We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10c7bbe commit 58fdc26Copy full SHA for 58fdc26
share/github-backup-utils/ghe-rsync
@@ -21,8 +21,8 @@ else
21
fi
22
23
ignoreout='^(file has vanished: |rsync warning: some files vanished before they could be transferred)'
24
-rsync_version_check=`rsync --version | egrep "version 2.[0-9]*.[0-9]*"`
25
-if [ -z "$rsync_version_check" ]; then
+rsync_version_check=`rsync --version | egrep "version 3.[0-9]*.[0-9]*"`
+if [ ! -z "$rsync_version_check" ]; then
26
# rsync >= 3.x sends errors to stderr. so, we need to redirect to stdout before the pipe
27
rsync "${parameters[@]}" $GHE_EXTRA_RSYNC_OPTS 2>&1 | (egrep -v "$ignoreout" || true)
28
else
0 commit comments