Skip to content

Commit

Permalink
Remove extraneous lock files
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Aug 20, 2024
1 parent 72d016e commit d6f18b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tool/rbinstall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,9 @@ def generate_bin_script(filename, bindir)
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
Expand Down

0 comments on commit d6f18b2

Please sign in to comment.