Skip to content

Commit dba7848

Browse files
committed
Testing grep to awk
1 parent 492492e commit dba7848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ghe-host-check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ if [ $rc -ne 0 ]; then
8484
exit $rc
8585
fi
8686

87-
version=$(echo "$output" | head -1 | awk '{print $NF}')
87+
version=$(echo "$output" | grep "GitHub Enterprise" | awk '{print $NF}')
8888

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

0 commit comments

Comments
 (0)