From 9bf6b0dd9398302d5ae91a6be6d207856d3930b1 Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Tue, 20 Feb 2018 19:06:44 +0100 Subject: [PATCH] Add debug output for swagger validate --- swagger-validate.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/swagger-validate.sh b/swagger-validate.sh index 239e915..5304a03 100644 --- a/swagger-validate.sh +++ b/swagger-validate.sh @@ -2,7 +2,9 @@ swagger generate spec --scan-models -o docs/spec.json (cd docs && packr && git add .) -if [[ `git status --porcelain | grep docs` ]]; then +if [[ `git diff docs` ]]; then + git status --porcelain | grep docs + git diff docs echo Swagger or the Packr file is not up-to-date exit 1 fi \ No newline at end of file