chore: hint how to fix fmt in pre-commit hook
This commit is contained in:
parent
9527561125
commit
00198abfd7
|
@ -11,4 +11,7 @@ if [[ "${files_dirty}" == '' ]] && [[ "${files_cached}" == '' ]]; then
|
|||
fi
|
||||
files="$(echo -e "${files_dirty} \n ${files_cached}" | xargs)"
|
||||
# shellcheck disable=SC2086
|
||||
./scripts/erlfmt $OPT $files
|
||||
if ! (./scripts/erlfmt $OPT $files); then
|
||||
echo "EXECUTE 'make fmt' to fix" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue