diff options
-rw-r--r-- | src/rebar_prv_common_test.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rebar_prv_common_test.erl b/src/rebar_prv_common_test.erl index 1165631..25e9dad 100644 --- a/src/rebar_prv_common_test.erl +++ b/src/rebar_prv_common_test.erl @@ -299,8 +299,10 @@ copy(State, Dir) -> true -> remove_links(Target); false -> ok end, - ok = ec_file:copy(From, Target, [recursive]), - Target + case rebar_file_utils:symlink_or_copy(From, Target) of + exists -> Target; + ok -> Target + end end. compile_dir(State, Dir) -> |