fix: remove sort --version-sort from command-latest as list is already sorted (#700)

This commit is contained in:
James Hegedus 2020-06-09 09:24:41 +10:00 committed by GitHub
parent 40c492bd8e
commit 0f80ac3567
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,6 @@ latest_command() {
asdf list-all "$plugin_name" "$query" |
grep -vE "(^Available versions:|-src|-dev|-latest|-stm|[-\\.]rc|-alpha|-beta|[-\\.]pre|-next|(a|b|c)[0-9]+|snapshot|master)" |
sed 's/^\s\+//' |
sort --version-sort |
tail -1
}