Skip to content

Commit fc5fe54

Browse files
authored
Merge branch 'master' into master
2 parents 925c05a + c2e1e64 commit fc5fe54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ghe-host-check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ if [ $rc -ne 0 ]; then
8484
exit $rc
8585
fi
8686

87-
version=$(echo "$output" | sed -E -n 's/GitHub Enterprise( Server)? version (.*)/\2/p')
87+
version=$(echo "$output" | grep "GitHub Enterprise" | awk '{print $NF}')
8888

8989
if [ -z "$version" ]; then
9090
echo "Error: failed to parse version on '$host' or this isn't a GitHub appliance." 1>&2

0 commit comments

Comments
 (0)