Skip to content

Commit ffddb27

Browse files
committed
fix: syntax escape
1 parent f087a13 commit ffddb27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/setVersions.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ set -euo pipefail
33
cd "$(dirname "${BASH_SOURCE[0]}")/.."
44

55
progname=$(basename $0)
6-
6+
set -x
77
VERSION="$1"
88

99
charts=("example-idp" "hydra-maester" "hydra" "keto" "kratos" "kratos-selfservice-ui-node" "oathkeeper-maester" "oathkeeper")
1010
charts_with_maesters=("hydra" "oathkeeper")
1111

1212
for chart in "${charts[@]}"
1313
do
14-
yq -i ".version = ${VERSION}" "helm/charts/${chart}/Chart.yaml" || {
14+
yq -i ".version = \"${VERSION}\"" "helm/charts/${chart}/Chart.yaml" || {
1515
echo "Failed to update version in 'helm/charts/${chart}/Chart.yaml'"
1616
exit 1
1717
}
1818
done
1919

2020
for chart in "${charts_with_maesters[@]}"
2121
do
22-
yq -i "(.dependencies[] | select(.name == \"${chart}-maester\")).version = ${VERSION}" "helm/charts/${chart}/Chart.yaml" || {
22+
yq -i "(.dependencies[] | select(.name == \"${chart}-maester\")).version = \"${VERSION}\"" "helm/charts/${chart}/Chart.yaml" || {
2323
echo "Failed to update version in 'helm/charts/${chart}/Chart.yaml'"
2424
exit 1
2525
}

0 commit comments

Comments
 (0)