Skip to content

Commit 8787e23

Browse files
chuckp22gamefiend
andauthored
Update bin/ghe-host-check
Update warn_msg verbiage Co-authored-by: Quinn Murphy <[email protected]>
1 parent fb7a6d3 commit 8787e23

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

bin/ghe-host-check

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,14 @@ DATA_TRANSFER_SIZE
214214
echo "Please make sure you have the minimum required version of rsync: $min_rsync installed" 1>&2
215215
exit 1
216216
elif awk "BEGIN {exit !($rsync_version < 3.2.5)}" &> /dev/null && [ "$RSYNC_WARNING" != "no" ]; then
217-
warn_mesg=("**WARNING: rsync version $rsync_version on backup host is less than 3.2.5. For more details, please read documentation at https://github.com/github/backup-utils/blob/master/docs/requirements.md#april-2023-update-of-rsync-requirements"
218-
"If you feel this warning doesn't apply anymore, you can disable it by updating RSYNC_WARNING to 'no' in your backup.config file.")
219-
printf "%s\n" "${warn_mesg[@]}" 1>&2
217+
echo << WARN_MSG
218+
**WARNING:** rsync version $rsync_version on backup host is less than 3.2.5, which could result in performance degradation.
219+
220+
For more details, please read documentation at https://github.com/github/backup-utils/blob/master/docs/requirements.md#april-2023-update-of-rsync-requirements"
221+
222+
You can disable this warning by changing RSYNC_WARNING to 'no' in your backup.config file.
223+
224+
WARN_MSG
220225
fi
221226
echo "rsync ${rsync_version} >= required ($min_rsync)" 1>&2
222227

0 commit comments

Comments
 (0)