Skip to content

Commit 24d91b9

Browse files
committed
update warn_msg text
1 parent 8787e23 commit 24d91b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/ghe-host-check

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ if [ -z "$supported" ]; then
144144
exit 1
145145
fi
146146

147-
if [[ "$CALLING_SCRIPT" != "ghe-backup" ]]; then
147+
if [[ "$CALLING_SCRIPT" == "ghe-backup" ]]; then
148148
# Bring in the requirements file
149149
min_rsync=""
150150
min_openssh=""
@@ -213,11 +213,11 @@ DATA_TRANSFER_SIZE
213213
echo "rsync version $rsync_version in backup-host does not meet minimum requirements." 1>&2
214214
echo "Please make sure you have the minimum required version of rsync: $min_rsync installed" 1>&2
215215
exit 1
216-
elif awk "BEGIN {exit !($rsync_version < 3.2.5)}" &> /dev/null && [ "$RSYNC_WARNING" != "no" ]; then
217-
echo << WARN_MSG
216+
elif [[ $rsync_version < 3.2.5 ]] && [[ $RSYNC_WARNING != "no" ]]; then
217+
cat << WARN_MSG 1>&2
218218
**WARNING:** rsync version $rsync_version on backup host is less than 3.2.5, which could result in performance degradation.
219219
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"
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
221221
222222
You can disable this warning by changing RSYNC_WARNING to 'no' in your backup.config file.
223223

0 commit comments

Comments
 (0)