cfg/.config/sanity.d/makefile-autohook.sh
Knut Ahlers 77de640cc8
Remove debugs re-stating the name of the check
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-09-06 13:40:14 +02:00

14 lines
282 B
Bash

function sanity_makefile_contains_autohook() {
[[ -f Makefile ]] || {
report debug "No Makefile found, skipping check"
return 0
}
grep '^auto-hook-' Makefile || {
report success "No auto-hooks found"
return 0
}
report error "Makefile contains auto-hooks"
return 1
}