Skip to content

Commit

Permalink
Fix replacement bug in gen-api-docs.sh
Browse files Browse the repository at this point in the history
I introduced a bug in googleforgames#1621 that means that the publish/expiry
replacement would never happen.

This fixes that issue, while also allowing us to maintain the `set -e`
within the bash script.
  • Loading branch information
markmandel committed Jun 10, 2020
1 parent 58a0746 commit 65a646e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions site/gen-api-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ function sedeasy {
}

# do we have changes in generated API docs compared to previous version
diff $RESULT $OLD || true
if [ $? -gt 0 ]
if ! diff $RESULT $OLD;
then
echo "Output to a file $FILE"

Expand Down

0 comments on commit 65a646e

Please sign in to comment.