cfg/.config/sanity.d/makefile-autohook.sh

15 lines
282 B
Bash
Raw Normal View History

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
}