Fix regression in rebar_file_utils:cp_r/2

This commit is contained in:
Tuncer Ayaz 2011-09-04 22:53:39 +02:00
parent 6f3f234d34
commit 1cb1ae238a

View file

@ -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;