Skip to content

Commit

Permalink
Merge pull request github#509 from github/taz/fix-host-check-portability
Browse files Browse the repository at this point in the history
Replace "sed -E" in ghe-host-check with a more portable solution
  • Loading branch information
lildude authored Aug 20, 2019
2 parents 0b42e11 + dba7848 commit c2e1e64
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 c2e1e64

Please sign in to comment.