Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement