[rubygems/rubygems] Remove unnecessary FileUtils usage
All other `chmod` usages in the file use `File.chmod`, so keep it consistent. https://github.com/rubygems/rubygems/commit/3dc0cf8703
This commit is contained in:
parent
dcc8e54234
commit
6db1c53fce
@ -500,8 +500,7 @@ class Gem::Installer
|
||||
dir_mode = options[:prog_mode] || (mode | 0o111)
|
||||
|
||||
unless dir_mode == mode
|
||||
require "fileutils"
|
||||
FileUtils.chmod dir_mode, bin_path
|
||||
File.chmod dir_mode, bin_path
|
||||
end
|
||||
|
||||
check_executable_overwrite filename
|
||||
|
Loading…
x
Reference in New Issue
Block a user