mirror of
https://github.com/danog/php.git
synced 2024-11-30 04:29:16 +01:00
Update "versions.sh" to preserve "null" RCs
This commit is contained in:
parent
5468752d5a
commit
7a2cc2af26
14
versions.sh
14
versions.sh
@ -105,16 +105,22 @@ for version in "${versions[@]}"; do
|
||||
|
||||
export fullVersion url ascUrl sha256
|
||||
json="$(
|
||||
jq <<<"$json" -c \
|
||||
--argjson variants "$variants" \
|
||||
'.[env.version] = {
|
||||
jq <<<"$json" -c --argjson variants "$variants" '
|
||||
.[env.version] = {
|
||||
version: env.fullVersion,
|
||||
url: env.url,
|
||||
ascUrl: env.ascUrl,
|
||||
sha256: env.sha256,
|
||||
variants: $variants,
|
||||
}'
|
||||
}
|
||||
'
|
||||
)"
|
||||
|
||||
if [ "$version" = "$rcVersion" ]; then
|
||||
json="$(jq <<<"$json" -c '
|
||||
.[env.version + "-rc"] //= null
|
||||
')"
|
||||
fi
|
||||
done
|
||||
|
||||
jq <<<"$json" -S . > versions.json
|
||||
|
Loading…
Reference in New Issue
Block a user