Skip to content

Commit

Permalink
Properly detect mode for binaries.
Browse files Browse the repository at this point in the history
.gemspec files specifies not just `bin`, but also other directories.
  • Loading branch information
voxik authored and nobu committed Feb 26, 2020
1 parent e087b02 commit b8a8fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/rbinstall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ def initialize(spec)
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)
Expand Down

0 comments on commit b8a8fdb

Please sign in to comment.