Permalink
Browse files

- 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...
1 parent 32d5bc4 commit f8cdab97645813cbb015119b7f3a190f66e3f620 @zenspider zenspider committed Feb 22, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/flog.rb
View
@@ -251,6 +251,8 @@ def flog(*files_or_dirs)
files = Flog.expand_dirs_to_files(*files_or_dirs)
files.each do |file|
+ next unless file == '-' or File.readable? file
+
ruby = file == '-' ? $stdin.read : File.binread(file)
flog_ruby ruby, file

0 comments on commit f8cdab9

Please sign in to comment.