phpDocs auto deployment: Fix output formatting
This commit is contained in:
parent
f5c721aba1
commit
fe10bca56b
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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" \
|
||||
|
|
Loading…
Add table
Reference in a new issue