Skip to content

Commit 58fdc26

Browse files
committed
check for 3.x instead
1 parent 10c7bbe commit 58fdc26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

share/github-backup-utils/ghe-rsync

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ else
2121
fi
2222

2323
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
24+
rsync_version_check=`rsync --version | egrep "version 3.[0-9]*.[0-9]*"`
25+
if [ ! -z "$rsync_version_check" ]; then
2626
# rsync >= 3.x sends errors to stderr. so, we need to redirect to stdout before the pipe
2727
rsync "${parameters[@]}" $GHE_EXTRA_RSYNC_OPTS 2>&1 | (egrep -v "$ignoreout" || true)
2828
else

0 commit comments

Comments
 (0)