From b1112f5e6dcce6047d4471602ef66943987aab80 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 20 Dec 2024 11:20:02 +0700 Subject: [PATCH] fix numeric sort --- deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 6087b03f..0213d9f4 100755 --- a/deploy.sh +++ b/deploy.sh @@ -157,7 +157,7 @@ function sync_docker { fi echo "latest tags:" - git tag | tail -n 5 | sort -r + git tag | sort -rV | head -n 5 printf "\ncreate new version:\n" read -r VERSION @@ -189,7 +189,7 @@ function sync_docker_old { fi echo "latest tags:" - git tag | tail -n 5 | sort -r + git tag | sort -rV | head -n 5 printf "\ncreate new version:\n" read -r VERSION