diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tidy-content.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/tidy-content.sh b/scripts/tidy-content.sh index 53533a1..e9bc577 100755 --- a/scripts/tidy-content.sh +++ b/scripts/tidy-content.sh @@ -27,10 +27,9 @@ INPUT_DIR="${1:-}" format() { FILE="${1}" - # mktemp - if ! tidy -utf8 -indent -modify "${FILE}" 2>> tmp-error.txt; then - cat <(echo "${FILE}") tmp-error.txt >> errors.txt - echo "Error in formatting '${FILE}'. See errors.txt for more detail." + echo "${FILE}" >&2 + if ! tidy --quiet yes -utf8 -indent -modify "${FILE}"; then + echo "Error in formatting '${FILE}'. See errors.txt for more detail." >&2 exit 1 fi } |