Skip to content

Commit

Permalink
Ensure the build check fails if there are new untracked files
Browse files Browse the repository at this point in the history
  • Loading branch information
brrygrdn committed Feb 15, 2022
1 parent 8d0b958 commit e8734e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/check-diff
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

# Make sure we notice any untracked files generated by the build
git add --intent-to-add .
git diff --quiet dist/
retVal=$?
if [ $retVal -ne 0 ]; then
Expand Down

0 comments on commit e8734e2

Please sign in to comment.