diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-09-28 10:58:06 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-09-28 10:58:06 -0700 |
commit | f2f00965676360bab8a4e0b2e1dbf35525a3569e (patch) | |
tree | 4f76826039a8d6b45aa942310a942613a60b1805 /lognotify.rb | |
parent | 678d0c386ab05f48e866c4814bc20bb7de51fbe9 (diff) | |
download | lognotify-f2f00965676360bab8a4e0b2e1dbf35525a3569e.tar.gz lognotify-f2f00965676360bab8a4e0b2e1dbf35525a3569e.tar.xz |
Oops, forgot to remove some output.
Diffstat (limited to 'lognotify.rb')
-rwxr-xr-x | lognotify.rb | 10 |
1 files 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) |