Add check for old project status SVG
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
8f989ee1ec
commit
6b828109b4
1 changed files with 14 additions and 0 deletions
14
.config/sanity.d/readme-old-project-status.sh
Normal file
14
.config/sanity.d/readme-old-project-status.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
function sanity_readme_has_old_project_status() {
|
||||
[[ -f README.md ]] || {
|
||||
report debug "No README found, skipping check"
|
||||
return 0
|
||||
}
|
||||
|
||||
grep -q 'd2o84fseuhwkxk.cloudfront.net' README.md || {
|
||||
report success "No old project status found"
|
||||
return 0
|
||||
}
|
||||
|
||||
report error "README contains old project status"
|
||||
return 1
|
||||
}
|
Loading…
Reference in a new issue