diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-08-20 20:16:45 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-08-20 20:16:45 +0900 |
| commit | d6f18b226ef51e71bea72eb888fa42bd0f74bc57 (patch) | |
| tree | f3b074a5b9585c552c4367ea0ef29606d1056514 | |
| parent | 72d016e97b38ccc2cf3e63964e69d1eed941eff6 (diff) | |
Remove extraneous lock files
See https://github.com/rubygems/rubygems/pull/7939
| -rwxr-xr-x | tool/rbinstall.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index db01e0b79d..0253673b65 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -746,7 +746,9 @@ module RbInstall name = formatted_program_filename(filename) unless $dryrun super - File.chmod($script_mode, File.join(bindir, name)) + script = File.join(bindir, name) + File.chmod($script_mode, script) + File.unlink("#{script}.lock") rescue nil end $installed_list.puts(File.join(without_destdir(bindir), name)) if $installed_list end |
