diff --git a/.ci.gofmt.sh b/.ci.gofmt.sh index b73a5f7c3..8c0b0a6a8 100755 --- a/.ci.gofmt.sh +++ b/.ci.gofmt.sh @@ -11,7 +11,7 @@ fi go run ./_readme-gofmt/main.go go generate ./... -if [ -n "$(git status -s -uno)" ]; then +if [ -n "$(git status --short)" ]; then echo "Go generate output does not match commit." echo "Did you forget to run go generate ./... ?" exit 1 diff --git a/.ci.gogenerate.sh b/.ci.gogenerate.sh index 5b5642094..6492d35f7 100755 --- a/.ci.gogenerate.sh +++ b/.ci.gogenerate.sh @@ -9,8 +9,9 @@ if [[ -z "$(go env GOMOD)" ]]; then fi go generate ./... -if [ -n "$(git diff)" ]; then +if [ -n "$(git status --short)" ]; then echo "Go generate had not been run" + git status --short git diff exit 1 fi