oh-my-git/levels/files/files-add

25 lines
658 B
Text
Raw Permalink Normal View History

2020-11-13 11:21:36 +01:00
title = Interior design
cards = file-new file-delete
2020-11-13 11:21:36 +01:00
[description]
Today has been stressful and exhausting. Let's make sure you know how to interact with your current environment, before doing fancy Git stuff.
You're moving into your student apartment, but soon discover that some furniture is missing!
2020-11-13 11:21:36 +01:00
[setup]
echo A yellow cupboard with lots of drawers. > cupboard
echo A small yellow shelf. > shelf
2020-11-13 11:21:36 +01:00
[win]
# Add two more pieces of furniture (in matching colors).
NUM_FILES="$(ls | wc -l)"
YELLOW_FILES="$(grep -l yellow * | wc -l)"
test "$NUM_FILES" -ge 4 && test "$YELLOW_FILES" = "$NUM_FILES"
2020-11-13 11:21:36 +01:00
[congrats]
Don't you immediately feel more at home?