main
sh 13 lines 306 Bytes
Raw
1 #!/bin/bash
2
3 set -e
4
5 # Make sure we don't introduce accidental references to PATENTS.
6 EXPECTED='scripts/ci/check_license.sh'
7 ACTUAL=$(git grep -l PATENTS)
8
9 if [ "$EXPECTED" != "$ACTUAL" ]; then
10 echo "PATENTS crept into some new files?"
11 diff -u <(echo "$EXPECTED") <(echo "$ACTUAL") || true
12 exit 1
13 fi