Skip to content

Commit

Permalink
Merge pull request #10 from jeffstephens/fix-return-code
Browse files Browse the repository at this point in the history
Set return code 1 if any segment fails. Fixes #9
  • Loading branch information
khash authored Sep 19, 2018
2 parents ef6dd9c + 136cf28 commit 6ba0763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/copper
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ba0763

Please sign in to comment.