fixed dos line-endings
This commit is contained in:
parent
b3b3292022
commit
9ab589cae7
3 changed files with 467 additions and 455 deletions
|
|
@ -30,3 +30,15 @@ case `select_opt "${options[@]}"` in
|
|||
1) echo "selected No";;
|
||||
*) echo "selected ${options[$?]}";;
|
||||
esac
|
||||
|
||||
# Example for above multiselect functions
|
||||
my_options=( "Option 1" "Option 2" "Option 3" )
|
||||
preselection=( "true" "true" "false" )
|
||||
|
||||
multiselect result my_options preselection
|
||||
|
||||
idx=0
|
||||
for option in "${my_options[@]}"; do
|
||||
echo -e "$option\t=> ${result[idx]}"
|
||||
((idx++))
|
||||
done
|
||||
Loading…
Reference in a new issue