Skip to content

Commit

Permalink
Fix the case when a file from diff does not exist in a container (Mor…
Browse files Browse the repository at this point in the history
…e details: prontolabs#338)
  • Loading branch information
pavelbeliaev committed Mar 17, 2021
1 parent 999d0b9 commit 693c753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pronto/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def gem_file?(path)
end

def ruby_executable?(path)
return false if File.directory?(path)
return false unless File.file?(path)
line = File.open(path, &:readline)
line =~ /#!.*ruby/
rescue ArgumentError, EOFError
Expand Down

0 comments on commit 693c753

Please sign in to comment.