From 52d06d906e6804b2f9e58e7c9ae4e8e3f007fa99 Mon Sep 17 00:00:00 2001 From: trick77 Date: Sun, 8 Jan 2017 10:14:40 +0100 Subject: [PATCH 1/2] 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 From f599bcfef97f3b94c455596a274009839a1a3788 Mon Sep 17 00:00:00 2001 From: trick77 Date: Sun, 8 Jan 2017 13:56:08 +0100 Subject: [PATCH 2/2] 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 76335696..0307bd2e 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -236,7 +236,7 @@ chooseInterface() { local firstLoop=1 if [[ $(echo "${availableInterfaces}" | wc -l) -eq 1 ]]; then - PIHOLE_INTERFACE=${availableInterfaces} + PIHOLE_INTERFACE="${availableInterfaces}" return fi