asdf-community / asdf-direnv

direnv plugin for the asdf version manager
https://github.com/asdf-vm/asdf
Apache License 2.0
559 stars 38 forks source link

_plugin_env_bash: handle unset $install_path #153

Closed scop closed 2 years ago

scop commented 2 years ago

Fixes error on asdf direnv local:

$ asdf direnv local golang 1.18.2
▶ asdf plugin-add golang # ...  Plugin named golang already added
✔️
▶ asdf install golang 1.18.2 # ...  golang 1.18.2 is already installed
✔️
▶ asdf local golang 1.18.2 # ...  ✔️
✍  Modifying .envrc ✔️
▶ direnv allow # ...  ✔️
.../.asdf/plugins/direnv/lib/commands/../tools-environment-lib.bash:296: install_path: unbound variable