Skip to content

Commit

Permalink
use NF instead of 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan1900 committed Jul 30, 2024
1 parent 450dd5c commit 652fc59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/check.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

check_protoc_version() {
version=$(protoc --version | awk '{print $2}')
version=$(protoc --version | awk '{print $NF}')
major=$(echo ${version} | cut -d '.' -f 1)
minor=$(echo ${version} | cut -d '.' -f 2)
if [ "$major" -eq 3 ] && [ "$minor" -ge 8 ]; then
Expand Down

0 comments on commit 652fc59

Please sign in to comment.