Skip to content

Commit

Permalink
fix(yq): force gojq if go yq is installed (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
malept authored Apr 12, 2024
1 parent bc78db2 commit fe0081d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/yq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ elif command -v yq >/dev/null 2>&1; then
# Make sure it's the correct yq. The Go yq is not compatible with jq syntax.
if [[ "$(yq --version)" =~ ^yq.3.* ]]; then
use_gojq=false
else
use_gojq=true
fi
else
use_gojq=true
Expand Down

0 comments on commit fe0081d

Please sign in to comment.