From f2f00965676360bab8a4e0b2e1dbf35525a3569e Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 28 Sep 2010 10:58:06 -0700 Subject: Oops, forgot to remove some output. --- lognotify.rb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lognotify.rb b/lognotify.rb index 4c5c494..30875a0 100755 --- a/lognotify.rb +++ b/lognotify.rb @@ -65,10 +65,7 @@ STDOUT.sync = true # Create cache directory, if nonexistent. path = File.expand_path(CACHE_DIR) -unless File.directory?(path) - File.makedirs(path) - puts 'Done' -end +File.makedirs(path) unless File.directory?(path) # Treat each argument as a log identifier. ARGV.each do |identifier| @@ -76,10 +73,7 @@ ARGV.each do |identifier| # Create cache file, if nonexistent. path = File.expand_path(CACHE_DIR + '/' + identifier + '.log') - unless File.exist?(path) - File.open(path, 'w').close - puts 'Done' - end + File.open(path, 'w').close unless File.exist?(path) print '* Counting lines in cached log... ' lines = count_lines(identifier) -- cgit v1.2.3-70-g09d2