mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
fix: excludes "milestone" releases in "latest" command (#1307)
Fixes #1306
This commit is contained in:
parent
eb7dac3a2b
commit
5334d1db3d
@ -150,7 +150,7 @@ latest_command() {
|
||||
else
|
||||
# pattern from xxenv-latest (https://github.com/momo-lab/xxenv-latest)
|
||||
versions=$(list_all_command "$plugin_name" "$query" |
|
||||
grep -ivE "(^Available versions:|-src|-dev|-latest|-stm|[-\\.]rc|-alpha|-beta|[-\\.]pre|-next|(a|b|c)[0-9]+|snapshot|master)" |
|
||||
grep -ivE "(^Available versions:|-src|-dev|-latest|-stm|[-\\.]rc|-milestone|-alpha|-beta|[-\\.]pre|-next|(a|b|c)[0-9]+|snapshot|master)" |
|
||||
sed 's/^[[:space:]]\+//' |
|
||||
tail -1)
|
||||
if [ -z "${versions}" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user