utils/shfmt.sh: redirect differences to stderr

This commit is contained in:
XuehaiPan 2021-10-07 19:48:53 +08:00
parent 735eb78601
commit 3113bf7158

View File

@ -371,7 +371,7 @@ format() {
cp -af "${tempfile}" "${file}"
else
# Show differences
"${DIFF}" "${DIFF_ARGS[@]}" "${file}" "${tempfile}"
"${DIFF}" "${DIFF_ARGS[@]}" "${file}" "${tempfile}" 1>&2
fi
return 4
else