File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -773,7 +773,7 @@ defmodule Mix.Release do
773
773
774
774
release . erts_source
775
775
|> Path . join ( "bin" )
776
- |> File . cp_r! ( destination , fn _ , _ -> false end )
776
+ |> File . cp_r! ( destination , on_conflict: fn _ , _ -> false end )
777
777
778
778
_ = File . rm ( Path . join ( destination , "erl" ) )
779
779
_ = File . rm ( Path . join ( destination , "erl.ini" ) )
Original file line number Diff line number Diff line change @@ -518,11 +518,13 @@ defmodule Mix.Utils do
518
518
519
519
{ :error , _ } ->
520
520
files =
521
- File . cp_r! ( source , target , fn orig , dest ->
522
- { orig_mtime , orig_size } = last_modified_and_size ( orig )
523
- { dest_mtime , dest_size } = last_modified_and_size ( dest )
524
- orig_mtime > dest_mtime or orig_size != dest_size
525
- end )
521
+ File . cp_r! ( source , target ,
522
+ on_conflict: fn orig , dest ->
523
+ { orig_mtime , orig_size } = last_modified_and_size ( orig )
524
+ { dest_mtime , dest_size } = last_modified_and_size ( dest )
525
+ orig_mtime > dest_mtime or orig_size != dest_size
526
+ end
527
+ )
526
528
527
529
{ :ok , files }
528
530
end
You can’t perform that action at this time.
0 commit comments