From 1ae2d6e4b4a6eb34d9c346f4e8c9e5c3c3675703 Mon Sep 17 00:00:00 2001 From: the Sane <3657071+the-sane@users.noreply.github.com> Date: Sat, 30 Jan 2021 14:45:38 -0500 Subject: [PATCH] zsh compatibility --- lug-helper.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index e2b8d5c..4e4f142 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -758,7 +758,7 @@ runner_select_delete() { menu_actions+=(":") # no-op # Calculate the total height the menu should be - menu_height="$(("$menu_option_height" * "${#menu_options[@]}" + "$menu_text_height"))" + menu_height="$(($menu_option_height * ${#menu_options[@]} + $menu_text_height))" if [ "$menu_height" -gt "400" ]; then menu_height="400" fi @@ -957,7 +957,7 @@ runner_select_install() { menu_actions+=(":") # no-op # Calculate the total height the menu should be - menu_height="$(("$menu_option_height" * "${#menu_options[@]}" + "$menu_text_height"))" + menu_height="$(($menu_option_height * ${#menu_options[@]} + $menu_text_height))" if [ "$menu_height" -gt "400" ]; then menu_height="400" fi @@ -1007,7 +1007,7 @@ runner_manage() { menu_actions+=("runner_select_delete" "menu_loop_done") # Calculate the total height the menu should be - menu_height="$(("$menu_option_height" * "${#menu_options[@]}" + "$menu_text_height"))" + menu_height="$(($menu_option_height * ${#menu_options[@]} + $menu_text_height))" # Call the menu function. It will use the options as configured above menu @@ -1144,7 +1144,7 @@ maintenance_menu() { menu_actions=("set_version" "sanitize" "rm_shaders" "rm_dxvkcache" "reset_helper" "menu_loop_done") # Calculate the total height the menu should be - menu_height="$(("$menu_option_height" * "${#menu_options[@]}" + "$menu_text_height"))" + menu_height="$(($menu_option_height * ${#menu_options[@]} + $menu_text_height))" # Call the menu function. It will use the options as configured above menu @@ -1279,7 +1279,7 @@ while true; do menu_actions=("preflight_check" "runner_manage" "maintenance_menu" "referral_randomizer" "quit") # Calculate the total height the menu should be - menu_height="$(("$menu_option_height" * "${#menu_options[@]}" + "$menu_text_height"))" + menu_height="$(($menu_option_height * ${#menu_options[@]} + $menu_text_height))" # Call the menu function. It will use the options as configured above menu