oh-my-git/levels/intro/risky
Benedikt Ziemons c7f8b3cd09
Fix typo in intro/risky level
from.txt -> form.txt
2021-02-07 23:54:15 +01:00

43 lines
807 B
Plaintext

title = Living dangerously
cards =
[description]
So you have decided to apply for time travel school, to learn how to use this time machine called "Git"!
How exciting!
You're almost done with the paperwork! You just need to fill in one more reason why you want to learn Git.
[congrats]
Suddenly, your cat jumps on the table, snatches away the form, and runs away! Oh no. All your hard work, gone!
You clearly need a better solution.
(Click "Next Level" as soon as you're ready!)
[setup]
rm -rf .git
echo "~ Why I want to learn Git ~
- So that I can undo mistakes
- To track my projects over time" >> form.txt
[actions]
test "$(cat form.txt | wc -l )" -ge 5 && echo "(Has been stolen by your cat.)
" > form.txt
[win]
# Add another line to form.txt!
test "$(cat form.txt | wc -l )" -ge 5