Check for exec-env and call it to get env vars

This commit is contained in:
Akash Manohar J 2014-12-14 22:25:21 +05:30
parent 26ec9a774a
commit 459839604c

View File

@ -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
}