From 5d3e8bf5547ff257cc515046ea45cf23a07c0376 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Mon, 21 Dec 2020 11:56:17 -0500 Subject: [PATCH] Fix calling function and arguments from array --- lug-helper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index cf3b609..78353ad 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -210,7 +210,7 @@ menu() { for (( i=0; i<"${#menu_options[@]}"; i++ )); do if [ "$choice" = "${menu_options[i]}" ]; then # Execute the corresponding action - "${menu_actions[i]}" + ${menu_actions[i]} matched="true" break fi @@ -235,7 +235,7 @@ menu() { if [ "$choice" = "${menu_options[i]}" ]; then # Execute the corresponding action echo -e "\n" - "${menu_actions[i]}" + ${menu_actions[i]} matched="true" break fi