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 committed May 14, 2020
1 parent 43b05b8 commit ed9b6e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.bash
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 ed9b6e7

Please sign in to comment.