Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
lildude authored Aug 20, 2019
2 parents 925c05a + c2e1e64 commit fc5fe54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ghe-host-check
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ if [ $rc -ne 0 ]; then
exit $rc
fi

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

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

0 comments on commit fc5fe54

Please sign in to comment.