diff --git a/_build/deploy-phpdoc-branch.sh b/_build/deploy-phpdoc-branch.sh index 373a6e8..2066cbe 100755 --- a/_build/deploy-phpdoc-branch.sh +++ b/_build/deploy-phpdoc-branch.sh @@ -2,17 +2,17 @@ if [ "$TRAVIS_PHP_VERSION" != "5.3" ]; then echo "Skipping phpDoc deployment because this is not on the required runtime" - exit + exit 0 fi if [[ ",$DEPLOY_PHPDOC_BRANCHES," != *,"$TRAVIS_BRANCH",* ]]; then echo "Skipping phpDoc deployment because this branch ($TRAVIS_BRANCH) is not permitted to deploy" - exit + exit 0 fi if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then echo "Skipping phpDoc deployment because this pull request (#$TRAVIS_PULL_REQUEST) is not permitted to deploy" - exit + exit 0 fi PHPDOC_ID="${TRAVIS_BRANCH//\//_}" diff --git a/_build/deploy-phpdoc-release.sh b/_build/deploy-phpdoc-release.sh index 02dcea9..fd21209 100755 --- a/_build/deploy-phpdoc-release.sh +++ b/_build/deploy-phpdoc-release.sh @@ -7,7 +7,7 @@ if [ "$DEPLOY_VERSION_BADGE" != "true" ]; then echo "Skipping version badge deployment because it has been disabled" fi if [ "$DEPLOY_PHPDOC_RELEASES" != "true" ] || [ "$DEPLOY_VERSION_BADGE" != "true" ]; then - [ "$DEPLOY_PHPDOC_RELEASES" != "true" ] && [ "$DEPLOY_VERSION_BADGE" != "true" ] && exit || echo + [ "$DEPLOY_PHPDOC_RELEASES" != "true" ] && [ "$DEPLOY_VERSION_BADGE" != "true" ] && exit 0 || echo fi PHPDOC_ID="${TRAVIS_BRANCH//\//_}" diff --git a/_build/generate-badge.sh b/_build/generate-badge.sh index b0d021d..1656c97 100755 --- a/_build/generate-badge.sh +++ b/_build/generate-badge.sh @@ -37,8 +37,8 @@ wget -O "$TMP_BADGE" \ # validate badge if [ ! -f "$TMP_BADGE" ] || [ ! -s "$TMP_BADGE" ]; then - printf 'Unable to generate badge; skipping...\n\n' - exit 0 + echo "Unable to generate badge; skipping..." >&2 + exit 1 fi # MIME type image/svg+xml isn't supported at the moment diff --git a/_build/github-deploy.sh b/_build/github-deploy.sh index fe62123..3734f20 100755 --- a/_build/github-deploy.sh +++ b/_build/github-deploy.sh @@ -66,7 +66,5 @@ fi # push changes printf 'Pushing changes...\n' git push -EXIT_CODE=$? echo -exit $EXIT_CODE