From 7d26be510243abc8d0ce277f9700c1206116b6eb Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Thu, 8 Aug 2013 18:33:55 +0200 Subject: [PATCH] Call ruby's 'abort' if the site is unhealthy --- lib/jekyll/commands/doctor.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/jekyll/commands/doctor.rb b/lib/jekyll/commands/doctor.rb index cf576fdd..8aca65c7 100644 --- a/lib/jekyll/commands/doctor.rb +++ b/lib/jekyll/commands/doctor.rb @@ -6,7 +6,9 @@ module Jekyll site = Jekyll::Site.new(options) site.read - unless unhealthy(site) + if unhealthy(site) + abort + else Jekyll.logger.info "Your test results", "are in. Everything looks fine." end end