Skip to content

Commit d84fea9

Browse files
authored
Merge pull request #2526 from jcharaoui/fix-install-rb
(FACT-3159) Fix install.rb for Ruby 3.0
2 parents 9f5c1db + 9931a11 commit d84fea9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

install.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def do_configs(configs, target, strip = 'ext/')
5454
Dir.mkdir(target) unless File.directory? target
5555
configs.each do |cf|
5656
ocf = File.join(InstallOptions.config_dir, cf.gsub(/#{strip}/, ''))
57-
install(cf, ocf, { mode: 0o644, preserve: true, verbose: true })
57+
install(cf, ocf, mode: 0o644, preserve: true, verbose: true)
5858
end
5959
end
6060

@@ -70,19 +70,19 @@ def do_libs(libs, strip = 'lib/')
7070
libs.each do |lf|
7171
olf = File.join(InstallOptions.site_dir, lf.gsub(/#{strip}/, ''))
7272
op = File.dirname(olf)
73-
makedirs(op, { mode: 0o755, verbose: true })
73+
makedirs(op, mode: 0o755, verbose: true)
7474
chmod(0o755, op)
75-
install(lf, olf, { mode: 0o644, preserve: true, verbose: true })
75+
install(lf, olf, mode: 0o644, preserve: true, verbose: true)
7676
end
7777
end
7878

7979
def do_man(man, strip = 'man/')
8080
man.each do |mf|
8181
omf = File.join(InstallOptions.man_dir, mf.gsub(/#{strip}/, ''))
8282
om = File.dirname(omf)
83-
makedirs(om, { mode: 0o755, verbose: true })
83+
makedirs(om, mode: 0o755, verbose: true)
8484
chmod(0o755, om)
85-
install(mf, omf, { mode: 0o644, preserve: true, verbose: true })
85+
install(mf, omf, mode: 0o644, preserve: true, verbose: true)
8686

8787
gzip = `which gzip`
8888
gzip.chomp!

0 commit comments

Comments
 (0)