[rubygems/rubygems] Fix RubyGems warnings about incorrect executable permissions
https://github.com/rubygems/rubygems/commit/92dcf60fc1
This commit is contained in:
parent
42a6916a3c
commit
c30297b3d1
@ -538,10 +538,10 @@ module Spec
|
||||
end
|
||||
|
||||
@files.each do |file, source|
|
||||
file = Pathname.new(path).join(file)
|
||||
FileUtils.mkdir_p(file.dirname)
|
||||
File.open(file, "w") {|f| f.puts source }
|
||||
File.chmod("+x", file) if @spec.executables.map {|exe| "#{@spec.bindir}/#{exe}" }.include?(file)
|
||||
full_path = Pathname.new(path).join(file)
|
||||
FileUtils.mkdir_p(full_path.dirname)
|
||||
File.open(full_path, "w") {|f| f.puts source }
|
||||
FileUtils.chmod("+x", full_path) if @spec.executables.map {|exe| "#{@spec.bindir}/#{exe}" }.include?(file)
|
||||
end
|
||||
path
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user