From 52d06d906e6804b2f9e58e7c9ae4e8e3f007fa99 Mon Sep 17 00:00:00 2001 From: trick77 Date: Sun, 8 Jan 2017 10:14:40 +0100 Subject: [PATCH] Bugfix if multiple interfaces are present --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index e5142915..76335696 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -235,7 +235,7 @@ chooseInterface() { # Loop sentinel variable local firstLoop=1 - if [[ $(echo ${availableInterfaces} | wc -l) -eq 1 ]]; then + if [[ $(echo "${availableInterfaces}" | wc -l) -eq 1 ]]; then PIHOLE_INTERFACE=${availableInterfaces} return fi