Skip to content

Commit

Permalink
Merge pull request #77 from dependabot/brrygrdn/update-check-diff-script
Browse files Browse the repository at this point in the history
Ensure the build check fails if there are new untracked files
  • Loading branch information
brrygrdn committed Feb 15, 2022
2 parents 8d0b958 + 32688a2 commit c46e41a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ output/output.json
repo
tmp/

# Ignore optional native extensions for SSH
dist/*/build/Release/cpufeatures.node
dist/*/lib/protocol/crypto/build/Release/sshcrypto.node

# Dependency directory
node_modules

Expand Down Expand Up @@ -98,7 +102,3 @@ typings/
# OS metadata
.DS_Store
Thumbs.db

# Ignore built ts files
__tests__/runner/*
lib/**/*
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 c46e41a

Please sign in to comment.