Skip to content

Commit

Permalink
fix: bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
huyikun.hyk committed Jan 16, 2024
1 parent bf00278 commit ec5986a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 # 本地版本小于要求版本
Expand Down

0 comments on commit ec5986a

Please sign in to comment.