Skip to content

Commit caed5e9

Browse files
committed
Fail if site generation fails
1 parent 0207fd4 commit caed5e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Rakefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ desc "Generate jekyll site"
5656
task :generate do
5757
raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir)
5858
puts "## Generating Site with Jekyll"
59-
system "compass compile --css-dir #{source_dir}/stylesheets"
60-
system "jekyll build"
59+
success = system "compass compile --css-dir #{source_dir}/stylesheets"
60+
abort("Generating CSS failed") unless success
61+
success = system "jekyll build"
62+
abort("Generating site failed") unless success
6163
end
6264

6365
desc "Watch the site and regenerate when it changes"

0 commit comments

Comments
 (0)