Skip to content

Commit 0671226

Browse files
authored
Update rsync version warning to remove cat
1 parent c80151d commit 0671226

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

bin/ghe-host-check

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,10 @@ DATA_TRANSFER_SIZE
219219
echo "Please make sure you have the minimum required version of rsync: $min_rsync installed" 1>&2
220220
exit 1
221221
elif [[ $rsync_version < 3.2.5 ]] && [[ $RSYNC_WARNING != "no" ]]; then
222-
cat << WARN_MSG 1>&2
223-
**WARNING:** rsync version $rsync_version on backup host is less than 3.2.5, which could result in performance degradation.
224-
225-
For more details, please read documentation at https://github.com/github/backup-utils/blob/master/docs/requirements.md#april-2023-update-of-rsync-requirements
226-
227-
You can disable this warning by changing RSYNC_WARNING to 'no' in your backup.config file.
228-
229-
WARN_MSG
222+
printf "\n **WARNING:** rsync version %s on backup host is less than 3.2.5, which could result in performance degradation.
223+
For more details, please read documentation at https://gh.io/april-2023-update-of-rsync-requirements
224+
You can disable this warning by changing RSYNC_WARNING to 'no' in your backup.config file.\n\n" \
225+
"$rsync_version" 1>&2
230226
fi
231227
echo " - rsync ${rsync_version} >= required ($min_rsync)" 1>&2
232228

0 commit comments

Comments
 (0)