Load next level when win condition is fulfilled

This commit is contained in:
Sebastian Morr 2020-09-10 12:47:18 +02:00
parent 39d952528f
commit 41260bc93c
4 changed files with 29 additions and 11 deletions
levels/01-blob

View file

@ -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