BASH y/n select – on user input
1 2 3 4 5 6 7 | echo "Do you wish to install this program?" select yn in "Yes" "No"; do case $yn in Yes ) make install; break;; No ) exit;; esac done |
source:stackoverflow
1 2 3 4 5 6 7 | echo "Do you wish to install this program?" select yn in "Yes" "No"; do case $yn in Yes ) make install; break;; No ) exit;; esac done |
source:stackoverflow