chore: hint how to fix fmt in pre-commit hook

This commit is contained in:
Zaiming (Stone) Shi 2022-05-14 12:18:55 +02:00
parent 9527561125
commit 00198abfd7
1 changed files with 4 additions and 1 deletions

View File

@ -11,4 +11,7 @@ if [[ "${files_dirty}" == '' ]] && [[ "${files_cached}" == '' ]]; then
fi fi
files="$(echo -e "${files_dirty} \n ${files_cached}" | xargs)" files="$(echo -e "${files_dirty} \n ${files_cached}" | xargs)"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
./scripts/erlfmt $OPT $files if ! (./scripts/erlfmt $OPT $files); then
echo "EXECUTE 'make fmt' to fix" >&2
exit 1
fi