Skip to content

Commit

Permalink
Fix calling function and arguments from array
Browse files Browse the repository at this point in the history
  • Loading branch information
the-sane authored Dec 21, 2020
1 parent 176533a commit 5d3e8bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lug-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5d3e8bf

Please sign in to comment.