Skip to content

Instantly share code, notes, and snippets.

@jairoFernandez
Created September 9, 2019 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jairoFernandez/cc54cfc2a07201b1e04db4c87d06103a to your computer and use it in GitHub Desktop.
Save jairoFernandez/cc54cfc2a07201b1e04db4c87d06103a to your computer and use it in GitHub Desktop.
Asistant
#!/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