diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-11-25 16:07:48 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-11-25 16:07:55 -0600 |
commit | f4a318f8f51c906968356b490a6cb5d8002495f4 (patch) | |
tree | df446f61284845f4714623a2bc4a5a8c5e4f2e37 | |
parent | c3af4ef89b4d82d12c16a1605fb5dfb78c28b97d (diff) |
preserve attributes when copying files in rebar_utils:cp_r for unix
-rw-r--r-- | src/rebar_file_utils.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_file_utils.erl b/src/rebar_file_utils.erl index ea1a6a2..8c57d19 100644 --- a/src/rebar_file_utils.erl +++ b/src/rebar_file_utils.erl @@ -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; |