mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -07:00
Merge pull request #525 from asdf-vm/tb/dont-iterate-over-ls
Address shellcheck warning and use shell globbing instead of ls
This commit is contained in:
commit
33c292e69d
@ -64,8 +64,8 @@ list_installed_versions() {
|
||||
plugin_installs_path="$(asdf_data_dir)/installs/${plugin_name}"
|
||||
|
||||
if [ -d "$plugin_installs_path" ]; then
|
||||
# shellcheck disable=SC2045
|
||||
for install in $(ls -d "${plugin_installs_path}"/*/ 2>/dev/null); do
|
||||
for install in "${plugin_installs_path}"/*/; do
|
||||
[[ -e "$install" ]] || break
|
||||
basename "$install" | sed 's/^ref-/ref:/'
|
||||
done
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user