fix gofmt check cmd

This commit is contained in:
istarboy 2021-11-18 11:32:03 +08:00
parent 02849956e8
commit 9547277931

View File

@ -57,8 +57,7 @@ jobs:
run: |
date
find . -name "*.go" | xargs gofmt -w
git diff --name-only --exit-code
if [ $? != 0 ];then echo "Notice: gofmt check failed,please gofmt before pr." && exit 1; else echo "gofmt check pass."; fi
git diff --name-only --exit-code || if [ $? != 0 ];then echo "Notice: gofmt check failed,please gofmt before pr." && exit 1; else echo "gofmt check pass."; fi
sudo echo "127.0.0.1 local" | sudo tee -a /etc/hosts
- name: Run i386 Arch Test