Hi,
Would someone please help me on Bash? Here is a broken script. I need someone to make it work.
Would someone please fix it for me? If possible add an error prompt that will say something like "You must have made a typo. Select option again." if I choose something that is not in the options.
Also, how do I make the script stay active until I exit it? Like after the script replies me, it goes back to asking me how I feel?
Thanks in advance for the help.
Would someone please help me on Bash? Here is a broken script. I need someone to make it work.
Code:
#!/bin/bash echo -n " How are you feeling? Tire Bored Hungry Enter: " #Type how you feel read option if $option 'Tire'; then echo "You should get some rest." if $option 'Bored'; then echo "Play a game of Frozen Bubble." If $option 'Hungry'; then echo "Order pizza!"
Also, how do I make the script stay active until I exit it? Like after the script replies me, it goes back to asking me how I feel?
Thanks in advance for the help.
Comment