Use awk regular expression delimeters and a more precise regexp for the version
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
This commit is contained in:
parent
bb82e007bc
commit
03a794f94c
@ -145,10 +145,10 @@ def helm_chart_yaml(
|
||||
awk '
|
||||
BEGIN{
|
||||
getline v < "$(location %s)"
|
||||
pr = match(v, "^v[0-9]+.[0-9]+.[0-9]+$$") == 0 ? "true" : "false"
|
||||
pr = match(v, /^v[0-9]+\.[0-9]+\.[0-9]+$$/) == 0 ? "true" : "false"
|
||||
}
|
||||
/{PRERELEASE}/{
|
||||
gsub("{PRERELEASE}", pr)
|
||||
gsub(/{PRERELEASE}/, pr)
|
||||
}1
|
||||
' $(location %s) > $@
|
||||
""" % (version_file, chart_yaml_template),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user