From f4a318f8f51c906968356b490a6cb5d8002495f4 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Wed, 25 Nov 2015 16:07:48 -0600 Subject: preserve attributes when copying files in rebar_utils:cp_r for unix --- src/rebar_file_utils.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.1