oh-my-git/levels/01-blob/win

8 lines
175 B
Text
Raw Normal View History

2020-09-10 12:03:46 +02:00
BLOB_COUNT=$(git cat-file --batch-check='%(objectname) %(objecttype)' --batch-all-objects | grep blob | wc -l)
if [ "$BLOB_COUNT" -gt 2 ]; then
exit 0
2020-09-10 12:03:46 +02:00
else
exit 1
2020-09-10 12:03:46 +02:00
fi