瀏覽代碼

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


Loading…
取消
儲存