Skip to content

Commit

Permalink
Pass source compile path if KEEP_SOURCE is true
Browse files Browse the repository at this point in the history
  • Loading branch information
HashNuke committed Jun 30, 2016
1 parent 42e2fea commit f7859d5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/commands/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ install_tool_version() {
export ASDF_INSTALL_TYPE=$install_type
export ASDF_INSTALL_VERSION=$version
export ASDF_INSTALL_PATH=$install_path

if [ "$KEEP_SOURCE" == "1" ]; then
echo "KEEP_SOURCE enabled"
export ASDF_SOURCE_COMPILE_PATH=$(get_source_compile_path $plugin_name $install_type $version)
mkdir $ASDF_SOURCE_COMPILE_PATH
fi

mkdir $install_path
bash ${plugin_path}/bin/install
)
Expand All @@ -64,7 +71,7 @@ install_tool_version() {
if [ $exit_code -eq 0 ]; then
reshim_command $plugin_name $full_version
else
rm -rf $install_path
rm -rf $install_path $ASDF_SOURCE_COMPILE_PATH
exit 1
fi
fi
Expand Down

0 comments on commit f7859d5

Please sign in to comment.