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 0862095 commit dd75a82Copy full SHA for dd75a82
bin/ghe-host-check
@@ -62,7 +62,7 @@ if [ $rc -ne 0 ]; then
62
fi
63
64
if [ -z "$legacy_version_output" ]; then
65
- version=$(echo "$output" | grep "GitHub Enterprise version" | grep -o "[0-9]*\.[0-9]*\.[0-9]*")
+ version=$(echo "$output" | sed -n 's/GitHub Enterprise version \(.*\)/\1/p')
66
else
67
version=$(echo "$output" | grep version | cut -d'"' -f4)
68
0 commit comments