diff options
author | Daniel Widgren <daniel.widgren@gmail.com> | 2015-06-26 22:39:15 +0200 |
---|---|---|
committer | Daniel Widgren <daniel.widgren@gmail.com> | 2015-06-26 22:39:15 +0200 |
commit | ebfdbc695ef8bf615ab28fba1d8c22752f21e1cd (patch) | |
tree | 8d526eb0ab46d05e1a329b133280b3d16be9aac5 /src | |
parent | 44272e23b641a016b74edf0cb9849b0656e8f726 (diff) |
Fixed review comments
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_file_utils.erl | 4 | ||||
-rw-r--r-- | src/rebar_prv_common_test.erl | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_file_utils.erl b/src/rebar_file_utils.erl index 735ab49..3fc5698 100644 --- a/src/rebar_file_utils.erl +++ b/src/rebar_file_utils.erl @@ -83,7 +83,7 @@ symlink_or_copy(Source, Target) -> true -> win32_symlink(S, T); false -> - ok + cp_r([S], T) end; _ -> case filelib:is_dir(Target) of @@ -104,7 +104,7 @@ win32_symlink(Source, Target) -> true -> ok; false -> {error, lists:flatten( - io_lib:format("Failed to sumlink ~s to ~s~n", + io_lib:format("Failed to symlink ~s to ~s~n", [Source, Target]))} end. diff --git a/src/rebar_prv_common_test.erl b/src/rebar_prv_common_test.erl index f76fdf5..9128064 100644 --- a/src/rebar_prv_common_test.erl +++ b/src/rebar_prv_common_test.erl @@ -354,7 +354,7 @@ remove_links(Path) -> true -> file:delete(Path); false -> - ec_file:is_dir(Path) andalso + IsDir andalso lists:foreach(fun(ChildPath) -> remove_links(ChildPath) end, sub_dirs(Path)) |