summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2016-01-29 22:19:00 +0100
committerChris Schlaeger <chris@linux.com>2016-01-29 22:19:00 +0100
commit678cf8a5cb8ec0903871b32507407ebf918087a2 (patch)
tree32d8885148b94884c6fc2c360582e655947b88e6
parente502b20f3818701220bf4c84c888605e126a63fc (diff)
downloadpostrunner-678cf8a5cb8ec0903871b32507407ebf918087a2.zip
Only check the database in debug mode.
-rw-r--r--lib/postrunner/Main.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/postrunner/Main.rb b/lib/postrunner/Main.rb
index dab970d..1bb067a 100644
--- a/lib/postrunner/Main.rb
+++ b/lib/postrunner/Main.rb
@@ -237,7 +237,7 @@ EOT
cfg['html_dir'] = File.join(@db_dir, 'html')
setup_directories
- if (errors = @db.check) != 0
+ if $DEBUG && (errors = @db.check) != 0
Log.fatal "Postrunner database is corrupted: #{errors} errors found"
end
execute_command(args)