Skip to content

Commit

Permalink
Fix osx grep have no -P flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaps committed Oct 21, 2024
1 parent 18bbdb6 commit 6652ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/pre-checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RED='\033[31m'
RESET='\033[0m'

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

0 comments on commit 6652ff4

Please sign in to comment.