1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Make it easier to debug swgger-gen flakes

Sometimes this check fails, but git status doesn't give us enough information
to debug the failure.

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
Daniel Nephin 2018-02-02 11:07:40 -08:00
parent 81e651c6d2
commit d80f25d079

View file

@ -10,7 +10,7 @@ unset IFS
if [ ${#files[@]} -gt 0 ]; then if [ ${#files[@]} -gt 0 ]; then
${SCRIPTDIR}/../generate-swagger-api.sh 2> /dev/null ${SCRIPTDIR}/../generate-swagger-api.sh 2> /dev/null
# Let see if the working directory is clean # Let see if the working directory is clean
diffs="$(git status --porcelain -- api/types/ 2>/dev/null)" diffs="$(git diff -- api/types/)"
if [ "$diffs" ]; then if [ "$diffs" ]; then
{ {
echo 'The result of hack/generate-swagger-api.sh differs' echo 'The result of hack/generate-swagger-api.sh differs'