mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Fix regression in rebar_file_utils:cp_r/2
This commit is contained in:
parent
6f3f234d34
commit
1cb1ae238a
1 changed files with 3 additions and 2 deletions
|
@ -61,8 +61,9 @@ rm_rf(Target) ->
|
|||
cp_r(Sources, Dest) ->
|
||||
case os:type() of
|
||||
{unix, _} ->
|
||||
SourceStr = string:join(Sources, " "),
|
||||
{ok, []} = rebar_utils:sh(?FMT("cp -R \"~s\" \"~s\"",
|
||||
QuotedSources = ["\"" ++ Src ++ "\"" || Src <- Sources],
|
||||
SourceStr = string:join(QuotedSources, " "),
|
||||
{ok, []} = rebar_utils:sh(?FMT("cp -R ~s \"~s\"",
|
||||
[SourceStr, Dest]),
|
||||
[{use_stdout, false}, return_on_error]),
|
||||
ok;
|
||||
|
|
Loading…
Reference in a new issue