Fix DirectoryUnpackStrategy permissions.
This commit is contained in:
parent
b675024ce0
commit
c29ab2d707
@ -96,7 +96,9 @@ class DirectoryUnpackStrategy < UnpackStrategy
|
|||||||
private
|
private
|
||||||
|
|
||||||
def extract_to_dir(unpack_dir, basename:, verbose:)
|
def extract_to_dir(unpack_dir, basename:, verbose:)
|
||||||
FileUtils.cp_r File.join(path, "."), unpack_dir, preserve: true, verbose: verbose
|
path.children.each do |child|
|
||||||
|
FileUtils.copy_entry child, unpack_dir/child.basename, true, false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user