Skip to content

Commit a893680

Browse files
committed
Merge pull request #20 from rohit/patch-1
Silence shadow warning
2 parents a2fd682 + 5443606 commit a893680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/executable-hooks/regenerate_binstubs_command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def execute_no_wrapper
5555
def try_to_fix_binstubs(spec)
5656
executable_paths =
5757
spec.executables.map do |executable|
58-
path = expanded_bin_paths.detect{|path| File.exist?(File.join(path, executable)) }
58+
path = expanded_bin_paths.detect{|bin_path| File.exist?(File.join(bin_path, executable)) }
5959
File.join(path, executable) if path
6060
end
6161
return false if executable_paths.include?(nil) # not found

0 commit comments

Comments
 (0)