mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Fix shellcheck errors
This commit is contained in:
parent
301cd3db3f
commit
d2324e36e7
@ -96,7 +96,8 @@ install_tool_version() {
|
||||
|
||||
if [ "${version_info[0]}" = "latest" ]; then
|
||||
load_cmd "latest"
|
||||
local version=$(latest_command "$plugin_name" "${version_info[1]}")
|
||||
local version
|
||||
version=$(latest_command "$plugin_name" "${version_info[1]}")
|
||||
full_version=$version
|
||||
else
|
||||
local version="${version_info[0]}"
|
||||
|
@ -7,9 +7,9 @@ latest_command() {
|
||||
[[ -z $query ]] && query="$DEFAULT_QUERY"
|
||||
|
||||
load_cmd "list-all"
|
||||
echo $(list_all_command "$plugin_name" "$query" \
|
||||
list_all_command "$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)
|
||||
| tail -1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user