Skip to content

Commit

Permalink
Don't delete script
Browse files Browse the repository at this point in the history
  • Loading branch information
Airtable committed Nov 4, 2020
1 parent 3779ad4 commit 1c0d874
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/check-is-build-fresh.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env sh

npm run prepare
git diff --exit-code ./build

if [ $? -eq 0 ]
then
echo "Build dir is up to date"
else
echo "Build dir is out of date. Run 'npm run prepare' and commit changes to update it."
exit 1
fi

0 comments on commit 1c0d874

Please sign in to comment.