aboutsummaryrefslogtreecommitdiff
path: root/scripts/tidy-content.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-02-14 23:06:27 -0300
committerEuAndreh <eu@euandre.org>2020-02-14 23:06:27 -0300
commit43a9e4eb977477275086b65bc5337f520499e08e (patch)
treef55e6c8224dfc7ac0cce6e2b1d9fc85ef44c3bf7 /scripts/tidy-content.sh
parentRemove old error tidy message (diff)
downloadeuandre.org-43a9e4eb977477275086b65bc5337f520499e08e.tar.gz
euandre.org-43a9e4eb977477275086b65bc5337f520499e08e.tar.xz
Improve error message of tidy-content.sh
Diffstat (limited to '')
-rwxr-xr-xscripts/tidy-content.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/tidy-content.sh b/scripts/tidy-content.sh
index 2ccb925..6dc13c6 100755
--- a/scripts/tidy-content.sh
+++ b/scripts/tidy-content.sh
@@ -26,12 +26,8 @@ INPUT_DIR="${1:-}"
}
format() {
- FILE="${1}"
- echo "${FILE}" >&2
- if ! tidy --quiet yes -utf8 -indent -modify "${FILE}"; then
- echo "Error in formatting '${FILE}'." >&2
- exit 1
- fi
+ echo "${1}" >&2
+ tidy --quiet yes -utf8 -indent -modify "${1}"
}
export -f format