Skip to content

Commit ee3fcdb

Browse files
author
José Valim
committed
Ensure recursive copy takes into account the proper target directory
1 parent ba88ee7 commit ee3fcdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mix/lib/mix/utils.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ defmodule Mix.Utils do
343343
symlink_source = make_relative_path(source, target)
344344
case :file.make_symlink(symlink_source, target) do
345345
:ok -> :ok
346-
{ :error, _ } -> File.cp_r!(source, Path.join(target, "."))
346+
{ :error, _ } -> File.cp_r!(source, Path.dirname(target))
347347
end
348348
end
349349

0 commit comments

Comments
 (0)