From fe4f254e1db95fc44328a71c1b38aaf1eae359a5452bad544b9084cc3d75f206 Mon Sep 17 00:00:00 2001 From: Alice Brooks Date: Thu, 5 Jun 2025 12:39:06 +0100 Subject: [PATCH] Sort tags numerically in update script to get the right version --- update_version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_version.sh b/update_version.sh index ff79eee..943268e 100644 --- a/update_version.sh +++ b/update_version.sh @@ -13,7 +13,7 @@ fi ### Fetch latest soruces ### -newVersion=$(git ls-remote --tags --refs "https://github.com/openSUSE/cockpit-subscriptions" | cut -d/ -f3- | tail -n1) +newVersion=$(git ls-remote --tags --refs "https://github.com/openSUSE/cockpit-subscriptions" | cut -d/ -f3- | sort -n | tail -n1) echo "Current version: $curVersion" echo " New version: $newVersion" -- 2.51.1