Browse Source

preserve attributes when copying files in rebar_utils:cp_r for unix

pull/941/head
Tristan Sloughter 9 years ago
parent
commit
f4a318f8f5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/rebar_file_utils.erl

+ 1
- 1
src/rebar_file_utils.erl View File

@ -139,7 +139,7 @@ cp_r(Sources, Dest) ->
{unix, _} ->
EscSources = [rebar_utils:escape_chars(Src) || Src <- Sources],
SourceStr = string:join(EscSources, " "),
{ok, []} = rebar_utils:sh(?FMT("cp -R ~s \"~s\"",
{ok, []} = rebar_utils:sh(?FMT("cp -Rp ~s \"~s\"",
[SourceStr, rebar_utils:escape_double_quotes(Dest)]),
[{use_stdout, false}, abort_on_error]),
ok;

Loading…
Cancel
Save