remove dependency on my bashrc
[iankelling.org] / build.rb
index 65264b6..b1a3411 100755 (executable)
--- a/build.rb
+++ b/build.rb
@@ -94,7 +94,13 @@ stdpage('favorite-things', File.read('../favorite-things.html'))
 # we could use ruby native stuff here, but this was
 # better documented so meh.
 # Force because it's cache is not perfect, it definitely misses renamed symlinks.
+
+ret = 0
 ["main", "gitweb-site"].each do |basename|
   cmd = "scss --force --cache-location ../.sass-cache"
-  system("#{cmd} ../css/#{basename}.scss css/#{basename}.css")
+  unless system("#{cmd} ../css/#{basename}.scss css/#{basename}.css")
+    ret = 1
+  end
 end
+
+exit ret