mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-01 20:42:01 +02:00
Load next level when win condition is fulfilled
This commit is contained in:
parent
39d952528f
commit
41260bc93c
4 changed files with 29 additions and 11 deletions
levels/01-blob
|
@ -1,7 +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
|
||||
exit 0
|
||||
else
|
||||
echo no
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue