diff --git a/lib/app_funcs.sh b/lib/app_funcs.sh index fd012cd2..0c2e35b4 100644 --- a/lib/app_funcs.sh +++ b/lib/app_funcs.sh @@ -34,7 +34,7 @@ function copy_hex() { cp -R ${HOME}/.hex/* ${build_path}/.hex/ output_section "Copying hex from $full_hex_file_path" - cp -f -R $full_hex_file_path ${build_path}/.mix/archives + cp -R $full_hex_file_path ${build_path}/.mix/archives } function hook_pre_app_dependencies() { diff --git a/lib/erlang_funcs.sh b/lib/erlang_funcs.sh index d807dd29..3491d0bf 100644 --- a/lib/erlang_funcs.sh +++ b/lib/erlang_funcs.sh @@ -32,11 +32,12 @@ function install_erlang() { tar zxf ${cache_path}/$(erlang_tarball) -C $(erlang_build_path) --strip-components=1 rm -rf $(runtime_erlang_path) - mkdir -p $(runtime_erlang_path) - cp -R $(erlang_build_path)/* $(runtime_erlang_path) + mkdir -p $(runtime_platform_tools_path) + ln -s $(erlang_build_path) $(runtime_erlang_path) $(erlang_build_path)/Install -minimal $(runtime_erlang_path) - PATH=$(runtime_erlang_path)/bin:$PATH + cp -R $(erlang_build_path) $(erlang_path) + PATH=$(erlang_path)/bin:$PATH } function erlang_changed() {