Skip to content

Commit 0eebd17

Browse files
committed
redirect echo stmt
1 parent 61f5f61 commit 0eebd17

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=""
@@ -187,7 +187,7 @@ echo -e "### Data Transfer Sizes \nrepositories: $repos_disk_size \npages: $page
187187
echo "Please make sure you have the minimum required version of rsync: $min_rsync installed" 1>&2
188188
exit 1
189189
else
190-
echo "rsync ${rsync_version} >= required ($min_rsync)"
190+
echo "rsync ${rsync_version} >= required ($min_rsync)" 1>&2
191191
fi
192192

193193
ssh_version=$(ssh -V 2>&1 | awk '{print $1}'|grep -oPm 1 '[\d\.]+' |head -1)
@@ -196,7 +196,7 @@ echo -e "### Data Transfer Sizes \nrepositories: $repos_disk_size \npages: $page
196196
echo "Please make sure the minimum required version of openSSH: $min_openssh is installed" 1>&2
197197
exit 1
198198
else
199-
echo "openSSH ${ssh_version} >= required ($min_openssh)"
199+
echo "openSSH ${ssh_version} >= required ($min_openssh)" 1>&2
200200
fi
201201

202202
jq_version=$(jq --version |awk -F\- '{print $2}')
@@ -205,7 +205,7 @@ echo -e "### Data Transfer Sizes \nrepositories: $repos_disk_size \npages: $page
205205
echo "Please make sure you have the minimum required version of jq: $min_jq installed" 1>&2
206206
exit 1
207207
else
208-
echo "jq ${jq_version} >= required ($min_jq)"
208+
echo "jq ${jq_version} >= required ($min_jq)" 1>&2
209209
fi
210210
fi
211211

0 commit comments

Comments
 (0)