From 58fdc26044dfbf07da436f4304c6b8f603b66430 Mon Sep 17 00:00:00 2001 From: Terrell Broomer Date: Fri, 25 Mar 2022 14:08:02 +0900 Subject: [PATCH] check for 3.x instead --- share/github-backup-utils/ghe-rsync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/github-backup-utils/ghe-rsync b/share/github-backup-utils/ghe-rsync index 36a47851..c5083507 100755 --- a/share/github-backup-utils/ghe-rsync +++ b/share/github-backup-utils/ghe-rsync @@ -21,8 +21,8 @@ else fi ignoreout='^(file has vanished: |rsync warning: some files vanished before they could be transferred)' -rsync_version_check=`rsync --version | egrep "version 2.[0-9]*.[0-9]*"` -if [ -z "$rsync_version_check" ]; then +rsync_version_check=`rsync --version | egrep "version 3.[0-9]*.[0-9]*"` +if [ ! -z "$rsync_version_check" ]; then # rsync >= 3.x sends errors to stderr. so, we need to redirect to stdout before the pipe rsync "${parameters[@]}" $GHE_EXTRA_RSYNC_OPTS 2>&1 | (egrep -v "$ignoreout" || true) else