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.
1 parent 0b42e11 commit 492492eCopy full SHA for 492492e
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" | head -1 | 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