From 9844a3288fdfc6a55ce2e8f7df1df62683b5ae16 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Fri, 5 Jun 2020 21:06:25 +0100 Subject: [PATCH] Same change as 03a8cff Signed-off-by: Adam Warner --- 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 6fdc6211..accb8919 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 '"') - mapfile -t supportedOS < <(dig +short -t txt ${remote_os_domain} | tr -d '"' | tr ' ' '\n') + 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 - mapfile -t supportedVer < <(echo "${versions_part}" | tr ',' '\n') + IFS=","; read -r -a supportedVer <<<"${versions_part}" for x in "${supportedVer[@]}" do if [[ "${detected_version}" =~ $x ]];then