We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2dfff6 + a148b23 commit 2c15be3Copy full SHA for 2c15be3
bin/ghe-host-check
@@ -38,7 +38,7 @@ if [ $rc -ne 0 ]; then
38
case $rc in
39
255)
40
if echo "$output" | grep -i "port 22: connection refused" >/dev/null; then
41
- exec "$0" "$hostname:122"
+ exec "bin/$(basename $0)" "$hostname:122"
42
fi
43
44
echo "$output" 1>&2
@@ -51,7 +51,7 @@ if [ $rc -ne 0 ]; then
51
;;
52
1)
53
if [ "${port:-22}" -eq 22 ] && echo "$output" | grep "use port 122" >/dev/null; then
54
55
else
56
57
0 commit comments