build: Use sort -n for automated version bumps (#2261)

Signed-off-by: adinhodovic <hodovicadin@gmail.com>
This commit is contained in:
Adin Hodovic
2023-11-07 18:16:12 +01:00
committed by GitHub
parent c11e9d9360
commit 0126439d08

View File

@@ -34,7 +34,7 @@ get_version() {
fi fi
# Use higher version from new version and current version # 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" echo "$v"
} }