Properly detect mode for binaries.
.gemspec files specifies not just `bin`, but also other directories.
This commit is contained in:
parent
e087b029e5
commit
b8a8fdba63
Notes:
git
2020-02-26 11:05:19 +09:00
@ -721,7 +721,7 @@ module RbInstall
|
|||||||
def extract_files(destination_dir, pattern = "*")
|
def extract_files(destination_dir, pattern = "*")
|
||||||
return if @src_dir == destination_dir
|
return if @src_dir == destination_dir
|
||||||
File.chmod(0700, destination_dir)
|
File.chmod(0700, destination_dir)
|
||||||
mode = pattern == "bin/*" ? prog_mode : data_mode
|
mode = pattern == File.join(spec.bindir, '*') ? prog_mode : data_mode
|
||||||
spec.files.each do |f|
|
spec.files.each do |f|
|
||||||
src = File.join(@src_dir, f)
|
src = File.join(@src_dir, f)
|
||||||
dest = File.join(without_destdir(destination_dir), f)
|
dest = File.join(without_destdir(destination_dir), f)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user