Created
September 9, 2019 16:30
-
-
Save jairoFernandez/cc54cfc2a07201b1e04db4c87d06103a to your computer and use it in GitHub Desktop.
Asistant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "Assistance of installations for devs" | |
PS3='Please enter your choice: ' | |
options=("Option 1" "Option 2" "Option 3" "Quit") | |
select opt in "${options[@]}" | |
do | |
case $opt in | |
"Option 1") | |
echo "you chose choice 1" | |
;; | |
"Option 2") | |
echo "you chose choice 2" | |
;; | |
"Option 3") | |
echo "you chose choice $REPLY which is $opt" | |
;; | |
"Quit") | |
break | |
;; | |
*) echo "invalid option $REPLY";; | |
esac | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment