mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +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
|
||||
|
||||
def generate_bin_script(filename, bindir)
|
||||
name = formatted_program_filename(filename)
|
||||
unless $dryrun
|
||||
super
|
||||
File.chmod($script_mode, filename)
|
||||
end
|
||||
if $installed_list
|
||||
filename = formatted_program_filename(filename)
|
||||
$installed_list.puts(File.join(without_destdir(bindir), filename))
|
||||
File.chmod($script_mode, File.join(bindir, name))
|
||||
end
|
||||
$installed_list.puts(File.join(without_destdir(bindir), name)) if $installed_list
|
||||
end
|
||||
|
||||
def verify_gem_home # :nodoc:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue