ruby-changes:62423
From: Nobuyoshi <ko1@a...>
Date: Wed, 29 Jul 2020 23:03:01 +0900 (JST)
Subject: [ruby-changes:62423] f79dc8741f (master): rbinstall.rb: fix generated script name to set mode
https://git.ruby-lang.org/ruby.git/commit/?id=f79dc8741f From f79dc8741f631f5572f4d2fa3cb7cad39b1356bb Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 29 Jul 2020 23:02:33 +0900 Subject: rbinstall.rb: fix generated script name to set mode diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index a4296e0..9a164ca 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -842,14 +842,12 @@ module RbInstall https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L842 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: -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/