Skip to content

Commit

Permalink
Map both ways ("8.0" -> "8.0-rc" and "8.0-rc" -> "8.0") so that we do…
Browse files Browse the repository at this point in the history
…n't lose versions
  • Loading branch information
tianon committed Sep 6, 2024
1 parent 3915e9e commit 7fd580d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ shell="$(
# now convert all that data to a basic shell list + map so we can loop over/use it appropriately
| "allVersions=( " + (
map(.version | ., if endswith("-rc") then empty else . + "-rc" end)
map(.version | ., if endswith("-rc") then rtrimstr("-rc") else . + "-rc" end)
| unique
| map(@sh)
| join(" ")
Expand Down

0 comments on commit 7fd580d

Please sign in to comment.