From 136cf28702ca8921518ba4b6005183ce4da7a990 Mon Sep 17 00:00:00 2001 From: Jeff Stephens Date: Wed, 19 Sep 2018 11:41:04 -0700 Subject: [PATCH] Set return code 1 if any segment fails. Fixes #9 --- bin/copper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/copper b/bin/copper index b149e21..4c43894 100755 --- a/bin/copper +++ b/bin/copper @@ -73,7 +73,7 @@ module Copper content.split('---').each_with_index do |part, idx| puts "Validating part #{idx}" file = YAML::load(part) - failed = validate(rules, file, content_file) + failed = true if validate(rules, file, content_file) end exit(1) if failed