From 26ec9a774a58f4565f92abb6902fa55a78dfd66c Mon Sep 17 00:00:00 2001 From: Akash Manohar J Date: Sun, 14 Dec 2014 22:22:37 +0530 Subject: [PATCH] Ability to set env vars in bin/exec-env --- lib/asdf.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/asdf.sh b/lib/asdf.sh index 098a1d1c..a1053e67 100755 --- a/lib/asdf.sh +++ b/lib/asdf.sh @@ -43,7 +43,8 @@ exec_command() { local install_path=$(get_install_path $package $install_type $version) - exec ${install_path}/${executable_path} ${@:3} + local exec_env=$(${source_path}/bin/exec-env $install_type $version $install_path) + eval $exec_env ${install_path}/${executable_path} ${@:3} }