From fe10bca56b9363f0e63488d1f2b73737e6f20311 Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Mon, 30 Nov 2015 15:24:00 +0100 Subject: [PATCH] phpDocs auto deployment: Fix output formatting --- _build/deploy-phpdoc.sh | 2 +- _build/generate-phpdoc.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_build/deploy-phpdoc.sh b/_build/deploy-phpdoc.sh index fec64c6..f916b9e 100755 --- a/_build/deploy-phpdoc.sh +++ b/_build/deploy-phpdoc.sh @@ -21,7 +21,7 @@ echo # check for changes if [ -z "$(git status --porcelain)" ]; then - echo "Nothing to deploy; skipping..." + printf 'Nothing to deploy; skipping...\n\n' exit 0 fi diff --git a/_build/generate-phpdoc.sh b/_build/generate-phpdoc.sh index 82eee54..3f12fd5 100755 --- a/_build/generate-phpdoc.sh +++ b/_build/generate-phpdoc.sh @@ -23,14 +23,14 @@ phpdoc project:parse --config "$PHPDOC_CONFIG" \ # check for changes printf '\nCheck for phpDoc cache changes...\n' if [ -z "$(git status --porcelain "$PHPDOC_CACHE_DIR")" ]; then - echo "No changes detected, don't rewrite phpDoc API docs..." + printf 'No changes detected; skipping phpDocs renewal...\n\n' exit 0 fi # transform phpDoc files (i.e. rewrite API docs) # NOTE: actually this should be `phpdoc project:transform`, # but the command seems to be broken... -printf '\nRewrite phpDoc API docs...\n' +printf '\nRewrite phpDocs...\n' rm -rf "$PHPDOC_TARGET_DIR" phpdoc project:run --config "$PHPDOC_CONFIG" \ --cache-folder "$PHPDOC_CACHE_DIR" \