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 0b42e11 + dba7848 commit c2e1e64Copy full SHA for c2e1e64
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