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