Skip to content

Commit

Permalink
fix azure cli version parsing
Browse files Browse the repository at this point in the history
Signed-off-by: jubittajohn <jujohn@redhat.com>
  • Loading branch information
jubittajohn committed Feb 10, 2025
1 parent ba67e17 commit 949ed0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tooling/templatize/cmd/pipeline/run/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type Version struct {
var versionConstraints = []Version{
{
Name: "Azure CLI",
Cmd: "az --version | grep azure-cli |awk '{print $NF}'",
Cmd: "az --version | grep azure-cli |awk '{print $NF} ' | grep -o '^[0-9.]*'",
Constraint: ">=2.68.0",
},
{
Expand Down

0 comments on commit 949ed0e

Please sign in to comment.