We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a955521 commit c0c3e17Copy full SHA for c0c3e17
hack/pre-checks.sh
@@ -5,7 +5,7 @@ RED='\033[31m'
5
RESET='\033[0m'
6
7
check-yq-version() {
8
- current_version=$(yq -V | grep -oP 'v[0-9]+\.[0-9]+\.[0-9]+')
+ current_version=$(yq -V | awk '$(NF-1) == "version" {print $NF}')
9
if [ -z "$current_version" ]; then
10
echo "yq is not installed or version cannot be determined."
11
exit 1
0 commit comments