Skip to content

Commit

Permalink
Update CRD api docs only if sorted files different (googleforgames#1694)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
aLekSer authored and ilkercelikyilmaz committed Oct 23, 2020
1 parent bfcef31 commit fe28258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/gen-api-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit fe28258

Please sign in to comment.