Skip to content

Commit

Permalink
more hacks for non semantic versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesw committed Nov 27, 2024
1 parent 56ca6e9 commit 473575e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ list_github_tags() {
}

sort_versions() {
sed 'h; s/[+-]/./g; s/.p\([[:digit:]]\)/.z\1/; s/$/.z/; G; s/\n/ /' |
LC_ALL=C sort -t. -k 1,1 -k 2,2n -k 3,3n -k 4,4n -k 5,5n | awk '{print $2}'
sort -n
# sed 'h; s/[+-]/./g; s/.p\([[:digit:]]\)/.z\1/; s/$/.z/; G; s/\n/ /' |
# LC_ALL=C sort -t. -k 1,1 -k 2,2n -k 3,3n -k 4,4n -k 5,5n | awk '{print $2}'
}

download_release() {
Expand Down

0 comments on commit 473575e

Please sign in to comment.