phpDocs auto deployment: Fix output formatting

This commit is contained in:
Daniel Rudolf 2015-11-30 15:24:00 +01:00
parent f5c721aba1
commit fe10bca56b
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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" \