mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
fix: typo and refactor on top of master
This commit is contained in:
parent
ade70b94db
commit
0c263ad700
@ -664,11 +664,13 @@ preset_versions() {
|
||||
select_from_preset_version() {
|
||||
local shim_name=$1
|
||||
local shim_versions
|
||||
local present_versions
|
||||
local preset_versions
|
||||
|
||||
shim_version=$(get_shim_versions "$shim_name")
|
||||
present_versions=$(preset_versions "$shim_name")
|
||||
grep -f "$shim_versions" "$present_versions" | head -n 1 | xargs -IVERSION printf "%s\\n" VERSION
|
||||
shim_versions=$(get_shim_versions "$shim_name")
|
||||
if [ -n "$shim_versions" ]; then
|
||||
preset_versions=$(preset_versions "$shim_name")
|
||||
grep -f "$shim_versions" "$preset_versions" | head -n 1 | xargs -IVERSION printf "%s\\n" VERSION
|
||||
fi
|
||||
}
|
||||
|
||||
select_version() {
|
||||
|
Loading…
Reference in New Issue
Block a user