diff options
Diffstat (limited to 'lognotify.rb')
-rwxr-xr-x | lognotify.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lognotify.rb b/lognotify.rb index 8996869..4c5c494 100755 --- a/lognotify.rb +++ b/lognotify.rb @@ -91,9 +91,11 @@ ARGV.each do |identifier| puts '* Number of new lines: ' + newlines.lines.count.to_s - print '* Appending new lines to cached log... ' - append_lines(identifier, newlines) - puts 'Done' + unless newlines.lines.count.zero? + print '* Appending new lines to cached log... ' + append_lines(identifier, newlines) + puts 'Done' - puts newlines + puts newlines + end end |