Browse Source

interactive

master
pvincent 4 days ago
parent
commit
48f0efc6e7
  1. 2
      interactive.bash

2
interactive.bash

@ -6,5 +6,5 @@ echo REPLY=$REPLY
choices=( one two three) choices=( one two three)
select choice in "${choices[@]}"; do select choice in "${choices[@]}"; do
[[ -n $choice ]] && break [[ -n $choice ]] && break
done
done < /dev/tty
echo "choice is: $choice" echo "choice is: $choice"
Loading…
Cancel
Save