Skip to content

Commit

Permalink
xx-apk: fix missing versionGTE
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Dec 11, 2024
1 parent 88f4f36 commit a3c2944
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/xx-apk
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ cmd() {
fi
}

versionGTE() { test "$(printf '%s\n' "$@" | sort -V | tail -n 1)" = "$1"; }

supportRiscV() {
versionGTE "$(xx-info os-version | cut -d'.' -f1-2)" "3.20"
}
Expand Down

0 comments on commit a3c2944

Please sign in to comment.