Skip to content

Commit

Permalink
Merge pull request #193 from crazy-max/fix-version-gte
Browse files Browse the repository at this point in the history
xx-apk: fix missing versionGTE
  • Loading branch information
tonistiigi authored Dec 12, 2024
2 parents 3ecfcd2 + a3c2944 commit f7ed7df
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 f7ed7df

Please sign in to comment.