Skip to content

Commit 7a2cc2a

Browse files
committed
Update "versions.sh" to preserve "null" RCs
1 parent 5468752 commit 7a2cc2a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

versions.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,22 @@ for version in "${versions[@]}"; do
105105

106106
export fullVersion url ascUrl sha256
107107
json="$(
108-
jq <<<"$json" -c \
109-
--argjson variants "$variants" \
110-
'.[env.version] = {
108+
jq <<<"$json" -c --argjson variants "$variants" '
109+
.[env.version] = {
111110
version: env.fullVersion,
112111
url: env.url,
113112
ascUrl: env.ascUrl,
114113
sha256: env.sha256,
115114
variants: $variants,
116-
}'
115+
}
116+
'
117117
)"
118+
119+
if [ "$version" = "$rcVersion" ]; then
120+
json="$(jq <<<"$json" -c '
121+
.[env.version + "-rc"] //= null
122+
')"
123+
fi
118124
done
119125

120126
jq <<<"$json" -S . > versions.json

0 commit comments

Comments
 (0)