Merge pull request #4731 from reitermarkus/use-cp
Use `cp` instead of `FileUtils.copy_entry`.
This commit is contained in:
commit
b119591c69
@ -16,7 +16,9 @@ module UnpackStrategy
|
|||||||
|
|
||||||
def extract_to_dir(unpack_dir, basename:, verbose:)
|
def extract_to_dir(unpack_dir, basename:, verbose:)
|
||||||
path.children.each do |child|
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user