From 9d6abcd9be975a0286125b1da4da02ccc85d5356 Mon Sep 17 00:00:00 2001 From: neilpang Date: Sat, 12 Nov 2016 00:23:07 +0800 Subject: [PATCH] fix CI --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3c4485bc..15099797 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,6 @@ addons: script: - curl -sSL $SHFMT_URL -o ~/shfmt - chmod +x ~/shfmt - - ~/shfmt -l -w -i 2 . && echo "shfmt OK" || git diff --exit-code || (echo "Run shfmt to fix the formatting issues" && false) - - [ "$?" = "0" ] && shellcheck -e SC2021,SC2126,SC2034 **/*.sh && echo "shellcheck OK" || false + - ~/shfmt -l -w -i 2 . && echo "shfmt OK" || git diff --exit-code || (echo "Run shfmt to fix the formatting issues" && exit 1) + - shellcheck -e SC2021,SC2126,SC2034 **/*.sh && echo "shellcheck OK" || exit 1