Build scripts: Don't try to commit nothing

This commit is contained in:
Daniel Rudolf 2016-01-14 13:20:04 +01:00
parent cd0e0f706f
commit b472664a20
2 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ generate-phpdoc.sh \
"$PHPDOC_GIT_DIR/phpDoc/$PHPDOC_ID.cache" "$PHPDOC_GIT_DIR/phpDoc/$PHPDOC_ID" \ "$PHPDOC_GIT_DIR/phpDoc/$PHPDOC_ID.cache" "$PHPDOC_GIT_DIR/phpDoc/$PHPDOC_ID" \
"Pico 1.0 API Documentation ($TRAVIS_BRANCH branch)" "Pico 1.0 API Documentation ($TRAVIS_BRANCH branch)"
[ $? -eq 0 ] || exit 1 [ $? -eq 0 ] || exit 1
[ -n "$(git status --porcelain "$PHPDOC_GIT_DIR/phpDoc/$PHPDOC_ID.cache")" ] || exit 0
# commit phpDocs # commit phpDocs
git add "$PHPDOC_GIT_DIR/phpDoc/$PHPDOC_ID" git add "$PHPDOC_GIT_DIR/phpDoc/$PHPDOC_ID"