Skip to content

Commit

Permalink
Add ammonite itself to .tool-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ysthakur committed Jul 15, 2023
1 parent 5cd24c7 commit a98c0c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
shellcheck 0.9.0
shfmt 3.6.0
amm 2.13-2.5.9
1 change: 1 addition & 0 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ if [ -n "${GITHUB_API_TOKEN:-}" ]; then
curl_opts=("${curl_opts[@]}" -H "Authorization: Bearer $GITHUB_API_TOKEN")
fi

# todo sort by only Ammonite version, not Scala version
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}'
Expand Down

0 comments on commit a98c0c4

Please sign in to comment.