2022-11-20 20:03:01 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Limit files in git to 1M.
|
2022-12-18 22:14:25 -06:00
|
|
|
find . -type f -exec du -k {} \; | egrep -v '^[[:digit:]]?[[:digit:]]?[[:digit:]][[:space:]]|venv|\s./.git/'
|
2022-11-20 20:03:01 -06:00
|
|
|
|
|
|
|
if [ $? -ne 1 ]; then
|
|
|
|
echo
|
|
|
|
echo "These files are probably larger than you want to commit to Git. Please try to find an alternate delivery path, such as a CDN or Git-LFS."
|
|
|
|
exit 1;
|
|
|
|
fi
|