From fc5103cc7225ff07226b2fc14bbe9643d0354ae4 Mon Sep 17 00:00:00 2001 From: Mohammad KhoshZaban Date: Mon, 30 Jun 2025 21:11:15 +0100 Subject: [PATCH] fix: list of ATS tags should be sorted as version-numbers to achieve the actual latest version --- infrastructure/cdn-in-a-box/bin/ats-version.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/infrastructure/cdn-in-a-box/bin/ats-version.sh b/infrastructure/cdn-in-a-box/bin/ats-version.sh index 4be091c2a8..af0816984f 100755 --- a/infrastructure/cdn-in-a-box/bin/ats-version.sh +++ b/infrastructure/cdn-in-a-box/bin/ats-version.sh @@ -39,6 +39,7 @@ remote_ats_version() { last_tag="$(<<<"$refs" grep -oE 'refs/tags/[0-9.]+$' | cut -d/ -f3 | grep -F "${branch::$((${#branch} - 1))}" | + sort -V | tail -n1)" # $release is the number of commits between $release to $branch.