devops-exercises/topics/shell/argument_check.md

9 lines
276 B
Markdown
Raw Normal View History

2021-11-07 16:54:06 +01:00
## Argument Check
### Objectives
Note: assume the script is executed with an argument
1. Write a script that will check if a given argument is the string "pizza"
1. If it's the string "pizza" print "with pineapple?"
2. If it's not the string "pizza" print "I want pizza!"