fix CI exit code

This commit is contained in:
neilpang 2016-11-09 20:05:52 +08:00
parent 439580b91b
commit f530a5074b

View File

@ -8,4 +8,4 @@ script:
- curl -sSL $SHFMT_URL -o ~/shfmt - curl -sSL $SHFMT_URL -o ~/shfmt
- chmod +x ~/shfmt - chmod +x ~/shfmt
- ~/shfmt -l -w -i 2 . - ~/shfmt -l -w -i 2 .
- git diff --exit-code || echo "Run shfmt to fix the formatting issues" - git diff --exit-code || (echo "Run shfmt to fix the formatting issues" && false)