Skip to content
Snippets Groups Projects
Commit ea89c7b0 authored by pregmodfan's avatar pregmodfan
Browse files

Merge branch 'pregmod-master' into 'pregmod-master'

Don't spit out tons of errors if not in a git checkout

See merge request !177
parents 445079aa 290fc2b0
Branches
Tags
No related merge requests found
#!/bin/bash
if [ ! -d ".git" ]; then
#not running in git repo, so can't use git commands :-)
echo "No .git repo found - skipping sanity checks"
exit 0
fi
# Check for missing right angle bracket: <</if>
git grep "<</[^>]*>[^>]" -- 'src/*'
git grep "<<[^>]*>[^<>"$'\r]*\r'"\?$" -- 'src/*'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment