Files
fetch-metadata/bin/check-diff
2022-04-19 20:00:26 +01:00

12 lines
255 B
Bash
Executable File

#!/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
echo "Detected uncommitted changes after build:"
git --no-pager diff dist/
exit 1
fi