From 60fbb173046260cdc5f94d413c5e5458cd89f955 Mon Sep 17 00:00:00 2001 From: Alexander Apalikov Date: Wed, 15 Jul 2020 14:53:09 +0300 Subject: [PATCH] Update CRD api docs only if sorted files different Ordering of APIGroups do not change the logic of the resulted file contents especially for the case when they are on the same level in the docs. Commutative property of the enumeration. --- site/gen-api-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/gen-api-docs.sh b/site/gen-api-docs.sh index 6964b1a031..b083855998 100755 --- a/site/gen-api-docs.sh +++ b/site/gen-api-docs.sh @@ -62,7 +62,7 @@ function sedeasy { } # do we have changes in generated API docs compared to previous version -if ! diff $RESULT $OLD; +if ! diff <(sort $RESULT) <(sort $OLD); then echo "Output to a file $FILE"