mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
rbinstall.rb: fix generated script name to set mode
This commit is contained in:
parent
f0affcdbf6
commit
f79dc8741f
1 changed files with 3 additions and 5 deletions
|
@ -842,14 +842,12 @@ module RbInstall
|
||||||
end
|
end
|
||||||
|
|
||||||
def generate_bin_script(filename, bindir)
|
def generate_bin_script(filename, bindir)
|
||||||
|
name = formatted_program_filename(filename)
|
||||||
unless $dryrun
|
unless $dryrun
|
||||||
super
|
super
|
||||||
File.chmod($script_mode, filename)
|
File.chmod($script_mode, File.join(bindir, name))
|
||||||
end
|
|
||||||
if $installed_list
|
|
||||||
filename = formatted_program_filename(filename)
|
|
||||||
$installed_list.puts(File.join(without_destdir(bindir), filename))
|
|
||||||
end
|
end
|
||||||
|
$installed_list.puts(File.join(without_destdir(bindir), name)) if $installed_list
|
||||||
end
|
end
|
||||||
|
|
||||||
def verify_gem_home # :nodoc:
|
def verify_gem_home # :nodoc:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue