@@ -30,7 +30,7 @@ git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
3030cd ..
3131
3232# Clean out existing contents
33−rm -rf $OUT/* || exit 0
33+# rm -rf $OUT/* || exit 0
3434
3535# Run our compile script
3636doCompile
@@ -40,6 +40,12 @@ cd $OUT
4040git config user.name "Travis CI"
4141git config user.email "$COMMIT_AUTHOR_EMAIL"
4242
43+# If there are no changes to the compiled out (e.g. this is a README update) then just bail.
44+if [ -z `git diff --exit-code` ]; then
45+ echo "No changes to the output on this push; exiting."
46+ exit 0
47+fi
48+
4349# Commit the "changes", i.e. the new version.
4450# The delta will show diffs between new and old versions.
4551git add -A