From 0126439d08cb3acb7f287dc90bc40da9cc20deed Mon Sep 17 00:00:00 2001 From: Adin Hodovic Date: Tue, 7 Nov 2023 18:16:12 +0100 Subject: [PATCH] build: Use sort -n for automated version bumps (#2261) Signed-off-by: adinhodovic --- scripts/generate-versions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/generate-versions.sh b/scripts/generate-versions.sh index 7dda220c81..29e5fa36f1 100755 --- a/scripts/generate-versions.sh +++ b/scripts/generate-versions.sh @@ -34,8 +34,8 @@ get_version() { fi # Use higher version from new version and current version - v=$(printf '%s\n' "$v" "$cv" | sort -r | head -n1) - + v=$(printf '%s\n' "$v" "$cv" | sort -n -r | head -n1) + echo "$v" }