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"