cfg/.config/sanity.d/placeholder-in-license.sh

15 lines
278 B
Bash
Raw Normal View History

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
}