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 925c05a + c2e1e64 commit fc5fe54Copy full SHA for fc5fe54
bin/ghe-host-check
@@ -84,7 +84,7 @@ if [ $rc -ne 0 ]; then
84
exit $rc
85
fi
86
87
-version=$(echo "$output" | sed -E -n 's/GitHub Enterprise( Server)? version (.*)/\2/p')
+version=$(echo "$output" | grep "GitHub Enterprise" | awk '{print $NF}')
88
89
if [ -z "$version" ]; then
90
echo "Error: failed to parse version on '$host' or this isn't a GitHub appliance." 1>&2
0 commit comments