diff options
author | Vít Ondruch <vondruch@redhat.com> | 2019-10-14 18:28:37 +0200 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-26 11:04:52 +0900 |
commit | b8a8fdba637589ff17f98cee4ea955667e3f0b1b (patch) | |
tree | a8b42345a2193d5c6f50a4f5752366e07a4b8255 /tool/rbinstall.rb | |
parent | e087b029e54776afe2b120974932dd707fee6874 (diff) |
Properly detect mode for binaries.
.gemspec files specifies not just `bin`, but also other directories.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2515
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-x | tool/rbinstall.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index b6e75f9a97..5423920da7 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -721,7 +721,7 @@ module RbInstall def extract_files(destination_dir, pattern = "*") return if @src_dir == 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| src = File.join(@src_dir, f) dest = File.join(without_destdir(destination_dir), f) |