Skip to content

Commit 7a9a1fc

Browse files
authored
[ci] Fix escaping for gen_versions_map.sh script (#836)
fixes errors like this: - https://github.com/cozystack/cozystack/actions/runs/14591720553/job/40928276862?pr=835 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved reliability of version generation by handling empty or special values safely in the process. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents c1046aa + 2def9f4 commit 7a9a1fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎hack/gen_versions_map.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ resolved_miss_map=$(
3030
fi
3131
3232
# if commit is not HEAD, check if it's valid
33-
if [ $commit != "HEAD" ]; then
33+
if [ "x$commit" != "xHEAD" ]; then
3434
if [ $(git show "${commit}:./${chart}/Chart.yaml" 2>/dev/null | awk '$1 == "version:" {print $2}') != "${version}" ]; then
3535
echo "Commit $commit for $chart $version is not valid" >&2
3636
exit 1

0 commit comments

Comments
 (0)