mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-01 20:42:01 +02:00
Refactor Level class so that we don't need to copy shell scripts
This commit is contained in:
parent
3291f0a78b
commit
c178a5c63e
6 changed files with 14 additions and 26 deletions
levels/bottom-up/puzzle-trees-all-the-way-down
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue