Skip to content

Commit

Permalink
Replace sed with awk to get the latest version of a tool
Browse files Browse the repository at this point in the history
Fixes failing CI tests on macOS

Co-authored-by: Thomas B Homburg <thomas@homburg.dk>
  • Loading branch information
klane and homburg authored May 13, 2020
1 parent 62fde34 commit 22997ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ get_latest_version() {
local versions=$1
versions=$(echo "$versions" |
grep -vE "(^Available versions:|-src|-dev|-latest|-stm|[-\.]rc|-alpha|-beta|[-\.]pre|-next|(a|b|c)[0-9]+|snapshot|master)" |
sed "s/^\s\+//" |
awk '{ print $1 }' |
sort --version-sort |
tail -1)

Expand Down

0 comments on commit 22997ce

Please sign in to comment.