Removing large files; adding hook to watch for them

This commit is contained in:
2022-12-18 22:14:25 -06:00
parent a34c96df6b
commit 0626c66413
29 changed files with 19 additions and 1740 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/bash
result="$(find roles/*/{files,templates} -type f -exec file {} \; | grep -Ev ASCII\ text\|empty\|Unicode\ text)"
if [ -n "$result" ]; then
echo "These files need to be evaluated -- generally, don't commit data files to Git."
echo "$result"
exit 1
fi
exit 0