From 8796f1ac4cba340633c67eb16e1a20b69c11e929 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 14 Feb 2020 22:59:08 -0300 Subject: Fix call of tidy: run in quiet mode --- scripts/tidy-content.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'scripts/tidy-content.sh') 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 } -- cgit v1.2.3