Advertisement
labyrinth-servers1

Pizza

Mar 27th, 2019
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.81 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. printf "\033c" #clear the screen
  4. s="size"; p="pan"; t="type"; sa="sauce"
  5.  
  6. function pause(){
  7.    read -p "$*"
  8. }
  9.  
  10. while true
  11. do
  12.  
  13. printf "\033c"
  14. s=$((1 + RANDOM % 2))
  15. printf "Size:    " -n
  16. if ((s==1))
  17. then
  18.     echo "Regular"
  19.     printf "Pan:     " -n
  20.     echo "Deep Pan"
  21. else
  22.     echo "Extra Large"
  23.     p="Regular"
  24.     printf "Pan:     " -n
  25.     echo "Regular"
  26. fi;
  27.  
  28. t=$((1 + RANDOM % 2))
  29. printf "Type:    " -n
  30. if ((t==1))
  31. then
  32.     echo "Ham & Cheese"
  33.     sa=0
  34. else
  35.     echo "Beef & Onion"
  36.     sa=1
  37.     printf "Sauce:   " -n
  38.     echo "Hollandaise Sauce"
  39. fi;
  40.  
  41. t=$((1 + RANDOM % 3))
  42. printf "Crust:   " -n
  43. if ((t==1))
  44. then
  45.     echo "Regular"
  46. else if ((t==2))
  47. then
  48.     echo "Cheesy"
  49. else
  50.     echo "Garlic"
  51. fi;fi;
  52.  
  53. if ((sa!=1))
  54. then
  55. echo ""
  56. fi
  57.  
  58. echo ""; pause 'Press [Enter] key to continue, or press ctrl+c'
  59. done;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement