From 7ea6d7b92b562c08a4877491d8796d0411435454 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Sun, 14 Jun 2020 00:17:51 +0100 Subject: [PATCH] remove ; so IFS changes don't stick Co-authored-by: Dan Schaper Signed-off-by: Adam Warner --- advanced/Scripts/piholeDebug.sh | 4 ++-- automated install/basic-install.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/advanced/Scripts/piholeDebug.sh b/advanced/Scripts/piholeDebug.sh index 8ff6f534..1a8efa20 100755 --- a/advanced/Scripts/piholeDebug.sh +++ b/advanced/Scripts/piholeDebug.sh @@ -405,7 +405,7 @@ os_check() { detected_os="${detected_os_pretty%% *}" detected_version=$(cat /etc/*release | grep VERSION_ID | cut -d '=' -f2- | tr -d '"') - IFS=" "; read -r -a supportedOS < <(dig +short -t txt ${remote_os_domain} | tr -d '"') + IFS=" " read -r -a supportedOS < <(dig +short -t txt ${remote_os_domain} | tr -d '"') for i in "${supportedOS[@]}" do @@ -414,7 +414,7 @@ os_check() { if [[ "${detected_os}" =~ ${os_part} ]]; then valid_os=true - IFS=","; read -r -a supportedVer <<<"${versions_part}" + IFS="," read -r -a supportedVer <<<"${versions_part}" for x in "${supportedVer[@]}" do if [[ "${detected_version}" =~ $x ]];then diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index e396e617..04a83735 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -187,7 +187,7 @@ os_check() { detected_os="${detected_os_pretty%% *}" detected_version=$(cat /etc/*release | grep VERSION_ID | cut -d '=' -f2- | tr -d '"') - IFS=" "; read -r -a supportedOS < <(dig +short -t txt ${remote_os_domain} | tr -d '"') + IFS=" " read -r -a supportedOS < <(dig +short -t txt ${remote_os_domain} | tr -d '"') for i in "${supportedOS[@]}" do @@ -196,7 +196,7 @@ os_check() { if [[ "${detected_os}" =~ ${os_part} ]]; then valid_os=true - IFS=","; read -r -a supportedVer <<<"${versions_part}" + IFS="," read -r -a supportedVer <<<"${versions_part}" for x in "${supportedVer[@]}" do if [[ "${detected_version}" =~ $x ]];then