From b8a8fdba637589ff17f98cee4ea955667e3f0b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Mon, 14 Oct 2019 18:28:37 +0200 Subject: Properly detect mode for binaries. .gemspec files specifies not just `bin`, but also other directories. --- tool/rbinstall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool') 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) -- cgit v1.2.3