Skip to content

Commit

Permalink
Use cp instead of FileUtils.copy_entry.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Aug 20, 2018
1 parent c9aa25e commit 556e76b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/Homebrew/unpack_strategy/directory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ def self.can_extract?(path)

def extract_to_dir(unpack_dir, basename:, verbose:)
path.children.each do |child|
FileUtils.copy_entry child, unpack_dir/child.basename, true, false
system_command! "cp",
args: ["-pR", child.directory? ? "#{child}/." : child, unpack_dir/child.basename],
verbose: verbose
end
end
end
Expand Down

0 comments on commit 556e76b

Please sign in to comment.