mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +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) ->
|
cp_r(Sources, Dest) ->
|
||||||
case os:type() of
|
case os:type() of
|
||||||
{unix, _} ->
|
{unix, _} ->
|
||||||
SourceStr = string:join(Sources, " "),
|
QuotedSources = ["\"" ++ Src ++ "\"" || Src <- Sources],
|
||||||
{ok, []} = rebar_utils:sh(?FMT("cp -R \"~s\" \"~s\"",
|
SourceStr = string:join(QuotedSources, " "),
|
||||||
|
{ok, []} = rebar_utils:sh(?FMT("cp -R ~s \"~s\"",
|
||||||
[SourceStr, Dest]),
|
[SourceStr, Dest]),
|
||||||
[{use_stdout, false}, return_on_error]),
|
[{use_stdout, false}, return_on_error]),
|
||||||
ok;
|
ok;
|
||||||
|
|
Loading…
Reference in a new issue