From 0e4d5e910362f160852398be708b99153a0c2d17 Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Sun, 8 Jan 2017 14:49:08 -0800 Subject: [PATCH] Bash splitting and globin Signed-off-by: Dan Schaper --- automated install/basic-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index e5142915..0307bd2e 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -235,8 +235,8 @@ chooseInterface() { # Loop sentinel variable local firstLoop=1 - if [[ $(echo ${availableInterfaces} | wc -l) -eq 1 ]]; then - PIHOLE_INTERFACE=${availableInterfaces} + if [[ $(echo "${availableInterfaces}" | wc -l) -eq 1 ]]; then + PIHOLE_INTERFACE="${availableInterfaces}" return fi