浏览代码

Update exit code check for format validation

pull/884/head
Dave Machado 7 年前
committed by GitHub
父节点
当前提交
2d3bace616
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. +4
    -3
      build/main.sh

+ 4
- 3
build/main.sh 查看文件

@@ -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


正在加载...
取消
保存