mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-07 05:02:04 +02:00
Win Script test for blob level
This commit is contained in:
parent
75679c8bb1
commit
39d952528f
3 changed files with 18 additions and 2 deletions
levels/01-blob
7
levels/01-blob/win
Normal file
7
levels/01-blob/win
Normal file
|
@ -0,0 +1,7 @@
|
|||
BLOB_COUNT=$(git cat-file --batch-check='%(objectname) %(objecttype)' --batch-all-objects | grep blob | wc -l)
|
||||
|
||||
if [ "$BLOB_COUNT" -gt 2 ]; then
|
||||
echo yes
|
||||
else
|
||||
echo no
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue