mirror of
https://github.com/facebook/react.git
synced 2026-02-23 04:12:21 +00:00
ghstack-source-id: 5d9cb7d3db
Pull Request resolved: https://github.com/facebook/react/pull/30507
14 lines
306 B
Bash
Executable File
14 lines
306 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Make sure we don't introduce accidental references to PATENTS.
|
|
EXPECTED='scripts/ci/check_license.sh'
|
|
ACTUAL=$(git grep -l PATENTS)
|
|
|
|
if [ "$EXPECTED" != "$ACTUAL" ]; then
|
|
echo "PATENTS crept into some new files?"
|
|
diff -u <(echo "$EXPECTED") <(echo "$ACTUAL") || true
|
|
exit 1
|
|
fi
|