| Line 65: |
Line 65: |
| | | | |
| | === User Input === | | === User Input === |
| | + | <source lang="bash"> |
| | + | #!/bin/bash |
| | + | while true; do |
| | + | read -p "Do you wish to install this program?" yn |
| | + | case $yn in |
| | + | [Yy]* ) make install; break;; |
| | + | [Nn]* ) exit;; |
| | + | * ) echo "Please answer yes or no.";; |
| | + | esac |
| | + | done |
| | + | </source> |
| | + | |
| | === Arrays === | | === Arrays === |
| | === Functions === | | === Functions === |