freebsd-ports/.hooks/pre-commit.d/common.sh
Luca Pizzamiglio 302c208fc5 Component: git hooks
Add common error function in hooks
Error messages are printed in stderr

Reviewed By: tcberner, #portmgr
Differential Revision: https://reviews.freebsd.org/D38026
2023-01-12 22:09:50 +01:00

7 lines
96 B
Bash

error() {
echo -e "$*" > /dev/stderr
}
pre_commit_error() {
error "[pre-commit] ERROR: $*"
}