From ec5986a26f3327b1a9c39b868626d9c51f43a7f3 Mon Sep 17 00:00:00 2001 From: "huyikun.hyk" Date: Tue, 16 Jan 2024 13:50:03 +0800 Subject: [PATCH] fix: bugs --- script.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/script.sh b/script.sh index 88c6ef0..5f19e0d 100755 --- a/script.sh +++ b/script.sh @@ -4,6 +4,7 @@ REQUIRED_VERSION='v14.14.0' function version_compare() { if [[ "$1" == "$2" ]]; then echo 0 # 本地版本等于要求版本 + return fi if [[ "$(printf '%s\n' "$1" "$2" | sort -V | head -n1)" == "$1" ]]; then echo 1 # 本地版本小于要求版本