cfg/.config/sanity.d/placeholder-in-license.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
278 B
Bash

function sanity_year_placeholder_in_license() {
[[ -f LICENSE ]] || {
report warn "No LICENSE file found"
return 0
}
grep '\[year\]' LICENSE || {
report success "No placeholder found"
return 0
}
report error "LICENSE file contains [year] placeholder"
return 1
}