From 1ca693866cf6c373c606541c0f65a4c43f27bc7c Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Sat, 25 Oct 2025 11:28:14 +0100 Subject: [PATCH] Fix formatting in chooseInterface function to ensure proper variable expansion - with quotes, the dialog command throws the error: Expected at least 20 tokens for --radi, have 5. Use --help to list options. Signed-off-by: Adam Warner --- automated install/basic-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index a4c04158..5f7bc89e 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -694,10 +694,11 @@ chooseInterface() { status="OFF" done # Disable check for double quote here as we are passing a string with spaces + # shellcheck disable=SC2086 PIHOLE_INTERFACE=$(dialog --no-shadow --keep-tite --output-fd 1 \ --cancel-label "Exit" --ok-label "Select" \ --radiolist "Choose An Interface (press space to toggle selection)" \ - ${r} ${c} "${interfaceCount}" "${interfacesList}") + ${r} ${c} "${interfaceCount}" ${interfacesList}) result=$? case ${result} in