We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5468752 commit 7a2cc2aCopy full SHA for 7a2cc2a
versions.sh
@@ -105,16 +105,22 @@ for version in "${versions[@]}"; do
105
106
export fullVersion url ascUrl sha256
107
json="$(
108
- jq <<<"$json" -c \
109
- --argjson variants "$variants" \
110
- '.[env.version] = {
+ jq <<<"$json" -c --argjson variants "$variants" '
+ .[env.version] = {
111
version: env.fullVersion,
112
url: env.url,
113
ascUrl: env.ascUrl,
114
sha256: env.sha256,
115
variants: $variants,
116
- }'
+ }
+ '
117
)"
118
+
119
+ if [ "$version" = "$rcVersion" ]; then
120
+ json="$(jq <<<"$json" -c '
121
+ .[env.version + "-rc"] //= null
122
+ ')"
123
+ fi
124
done
125
126
jq <<<"$json" -S . > versions.json
0 commit comments