mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-14 16:40:34 +00:00
Fix calling function and arguments from array
This commit is contained in:
parent
176533a404
commit
5d3e8bf554
@ -210,7 +210,7 @@ menu() {
|
|||||||
for (( i=0; i<"${#menu_options[@]}"; i++ )); do
|
for (( i=0; i<"${#menu_options[@]}"; i++ )); do
|
||||||
if [ "$choice" = "${menu_options[i]}" ]; then
|
if [ "$choice" = "${menu_options[i]}" ]; then
|
||||||
# Execute the corresponding action
|
# Execute the corresponding action
|
||||||
"${menu_actions[i]}"
|
${menu_actions[i]}
|
||||||
matched="true"
|
matched="true"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@ -235,7 +235,7 @@ menu() {
|
|||||||
if [ "$choice" = "${menu_options[i]}" ]; then
|
if [ "$choice" = "${menu_options[i]}" ]; then
|
||||||
# Execute the corresponding action
|
# Execute the corresponding action
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
"${menu_actions[i]}"
|
${menu_actions[i]}
|
||||||
matched="true"
|
matched="true"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user