From 7fd580def13c782eb19ee482f5aaf509bd6034a6 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 6 Sep 2024 15:19:44 -0700 Subject: [PATCH] Map both ways ("8.0" -> "8.0-rc" and "8.0-rc" -> "8.0") so that we don't lose versions --- versions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions.sh b/versions.sh index 29acce755..75c89afbf 100755 --- a/versions.sh +++ b/versions.sh @@ -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(" ")