Browse Source

Update exit code check for format validation

pull/884/head
Dave Machado 7 years ago
committed by GitHub
parent
commit
2d3bace616
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      build/main.sh

+ 4
- 3
build/main.sh View File

@@ -3,10 +3,11 @@
echo "running format validation..."
./validate.rb ../README.md

if ["$?" == 0]; then
echo "format validation PASSED"
if [[ $? != 0 ]]; then
echo "format validation failed!"
exit $?
else
echo "format validation FAILED"
echo "format validation passed!"
fi

if [ "$TRAVIS_BRANCH" == "master" ]; then


Loading…
Cancel
Save