Refactor Level class so that we don't need to copy shell scripts

This commit is contained in:
Sebastian Morr 2020-09-29 20:36:57 +02:00
parent 3291f0a78b
commit c178a5c63e
6 changed files with 14 additions and 26 deletions
levels/bottom-up/puzzle-trees-all-the-way-down

View file

@ -8,11 +8,11 @@ for TREE in $TREES; do
if [ "$(git cat-file -p $TREE2 | wc -l)" -eq 1 ]; then
if [ "$(git cat-file -p $TREE2 | cut -f1 | grep tree | wc -l)" -eq 1 ]; then
# Same for its child! \o/
exit 0
return 0
fi
fi
fi
fi
done
exit 1
return 1