Update question

This commit is contained in:
Daniil Gentili 2016-03-06 21:30:25 +01:00
parent 6e3e156f42
commit 79a7a7ee4a

View File

@ -5,7 +5,7 @@ Would you like some tea (y/n)?"
read answer read answer
[[ $answer =~ ^([yY][eE][sS]|[yY])$ ]] && echo "OK then, here you go: http://www.rivertea.com/blog/wp-content/uploads/2013/12/Green-Tea.jpg" || echo "OK then." [[ $answer =~ ^([yY][eE][sS]|[yY])$ ]] && echo "OK then, here you go: http://www.rivertea.com/blog/wp-content/uploads/2013/12/Green-Tea.jpg" || echo "OK then."
until [ "$SUCCESS" = "y" ] ;do until [ "$SUCCESS" = "y" ] ;do
echo "Do you like Music? mykeyboardstartshere Yass! No" echo 'Do you like Music? mykeyboardstartshere "Yass!" "No"'
read answer read answer
case $answer in case $answer in
'Yass!') echo "Goody!";SUCCESS=y;; 'Yass!') echo "Goody!";SUCCESS=y;;