mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Check for exec-env and call it to get env vars
This commit is contained in:
parent
26ec9a774a
commit
459839604c
@ -43,8 +43,15 @@ exec_command() {
|
||||
|
||||
|
||||
local install_path=$(get_install_path $package $install_type $version)
|
||||
|
||||
|
||||
if [ -f ${source_path}/bin/exec-env ]
|
||||
then
|
||||
local exec_env=$(${source_path}/bin/exec-env $install_type $version $install_path)
|
||||
eval $exec_env ${install_path}/${executable_path} ${@:3}
|
||||
else
|
||||
${install_path}/${executable_path} ${@:3}
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user