Skip to content

Commit 7fd580d

Browse files
committed
Map both ways ("8.0" -> "8.0-rc" and "8.0-rc" -> "8.0") so that we don't lose versions
1 parent 3915e9e commit 7fd580d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

versions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ shell="$(
7171
7272
# now convert all that data to a basic shell list + map so we can loop over/use it appropriately
7373
| "allVersions=( " + (
74-
map(.version | ., if endswith("-rc") then empty else . + "-rc" end)
74+
map(.version | ., if endswith("-rc") then rtrimstr("-rc") else . + "-rc" end)
7575
| unique
7676
| map(@sh)
7777
| join(" ")

0 commit comments

Comments
 (0)