Skip to content

Commit c0c3e17

Browse files
authored
Fix osx grep have no -P flag (#438)
1 parent a955521 commit c0c3e17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/pre-checks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RED='\033[31m'
55
RESET='\033[0m'
66

77
check-yq-version() {
8-
current_version=$(yq -V | grep -oP 'v[0-9]+\.[0-9]+\.[0-9]+')
8+
current_version=$(yq -V | awk '$(NF-1) == "version" {print $NF}')
99
if [ -z "$current_version" ]; then
1010
echo "yq is not installed or version cannot be determined."
1111
exit 1

0 commit comments

Comments
 (0)