From 8f6b5e8e6dcee148cd1db4506f8c2003dd14515d Mon Sep 17 00:00:00 2001 From: Yury Kossakovsky Date: Wed, 27 Aug 2025 13:57:43 -0600 Subject: [PATCH] Update service selection wizard to dynamically adjust checklist height based on the number of services available --- scripts/04_wizard.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/04_wizard.sh b/scripts/04_wizard.sh index af3f5fb..15e81ec 100755 --- a/scripts/04_wizard.sh +++ b/scripts/04_wizard.sh @@ -106,9 +106,8 @@ done # Use whiptail to display the checklist num_services=$(( ${#services[@]} / 3 )) -list_height=$(( num_services + 4 )) CHOICES=$(whiptail --title "Service Selection Wizard" --checklist \ - "Choose the services you want to deploy.\nUse ARROW KEYS to navigate, SPACEBAR to select/deselect, ENTER to confirm." 32 90 $list_height \ + "Choose the services you want to deploy.\nUse ARROW KEYS to navigate, SPACEBAR to select/deselect, ENTER to confirm." 32 90 $num_services \ "${services[@]}" \ 3>&1 1>&2 2>&3)