react/scripts/ci/check_license.sh
Lauren Tan e415b22494
[ci] Rename scripts/circleci to scripts/ci
ghstack-source-id: 5d9cb7d3dbd0f5c54856ad194517524f14cf1ccb
Pull Request resolved: https://github.com/facebook/react/pull/30507
2024-07-29 19:18:03 -04:00

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