This commit is contained in:
Terrell Broomer 2022-03-25 14:08:02 +09:00
Родитель 10c7bbecf1
Коммит 58fdc26044
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -21,8 +21,8 @@ else
fi fi
ignoreout='^(file has vanished: |rsync warning: some files vanished before they could be transferred)' 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]*"` rsync_version_check=`rsync --version | egrep "version 3.[0-9]*.[0-9]*"`
if [ -z "$rsync_version_check" ]; then if [ ! -z "$rsync_version_check" ]; then
# rsync >= 3.x sends errors to stderr. so, we need to redirect to stdout before the pipe # 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) rsync "${parameters[@]}" $GHE_EXTRA_RSYNC_OPTS 2>&1 | (egrep -v "$ignoreout" || true)
else else