Skip to content

Commit

Permalink
Handle optional operand golang patch version
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Smith <[email protected]>
  • Loading branch information
joelsmith committed Aug 12, 2024
1 parent b821d94 commit ee743bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/relprep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ echo "Fetching go.mod for KEDA v$ver"
keda_gomod="$(curl -s "https://raw.githubusercontent.com/kedacore/keda/v${ver}/go.mod")"

echo -n "Finding out which version of Go KEDA v$ver is using... "
gover=$(echo "$keda_gomod" | grep -Po '(?<=^go )[1-9][0-9]*\.[0-9][0-9]*$')
gover=$(echo "$keda_gomod" | grep -Po '(?<=^go )[1-9][0-9]*\.[0-9][0-9]*(?=(\.[0-9]+)?$)')
echo $gover

echo -n "Finding out which K8s version KEDA v$ver is using... "
Expand Down

0 comments on commit ee743bd

Please sign in to comment.