aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tidy-content.sh7
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
}