Skip to content

Commit

Permalink
Same change as 03a8cff
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
  • Loading branch information
PromoFaux committed Jun 5, 2020
1 parent acf2879 commit 9844a32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions automated install/basic-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

5 comments on commit 9844a32

@PromoFaux

This comment was marked as resolved.

@PromoFaux

This comment was marked as resolved.

@dschaper

This comment was marked as resolved.

@PromoFaux

This comment was marked as resolved.

@dschaper

This comment was marked as resolved.

Please sign in to comment.