Note: assume the script is executed with an argument
- Write a script that will check if a given argument is the string "pizza"
- If it's the string "pizza" print "with pineapple?"
- If it's not the string "pizza" print "I want pizza!"
/usr/bin/env bash
arg_value=${1:-default}
if [ $arg_value = "pizza" ]; then
echo "with pineapple?"
else
echo "I want pizza!"
fi