Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

- Don't blow up if a path doesn't exist or isn't readable.

[git-p4: depot-paths = "//src/flog/dev/": change = 8260]
  • Loading branch information...
commit f8cdab97645813cbb015119b7f3a190f66e3f620 1 parent 32d5bc4
Ryan Davis authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  lib/flog.rb
2  lib/flog.rb
@@ -251,6 +251,8 @@ def flog(*files_or_dirs)
251 251
     files = Flog.expand_dirs_to_files(*files_or_dirs)
252 252
 
253 253
     files.each do |file|
  254
+      next unless file == '-' or File.readable? file
  255
+
254 256
       ruby = file == '-' ? $stdin.read : File.binread(file)
255 257
 
256 258
       flog_ruby ruby, file

0 notes on commit f8cdab9

Please sign in to comment.
Something went wrong with that request. Please try again.