Skip to content

Commit

Permalink
Lint against files with old license (facebook#3361)
Browse files Browse the repository at this point in the history
* Lint against files with old license

* Update e2e-simple.sh

* Update e2e-simple.sh

* oh no
  • Loading branch information
gaearon authored and Pavel Zhytko committed Jul 10, 2018
1 parent e9b6ba8 commit 1532344
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tasks/e2e-simple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,19 @@ set -x
cd ..
root_path=$PWD

# Make sure we don't introduce accidental references to PATENTS.
EXPECTED='packages/react-error-overlay/fixtures/bundle.mjs
packages/react-error-overlay/fixtures/bundle.mjs.map
packages/react-error-overlay/fixtures/bundle_u.mjs
packages/react-error-overlay/fixtures/bundle_u.mjs.map
tasks/e2e-simple.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

# Clear cache to avoid issues with incorrect packages being used
if hash yarnpkg 2>/dev/null
then
Expand Down

0 comments on commit 1532344

Please sign in to comment.