Skip to content

Commit

Permalink
BLD: Fix read option.
Browse files Browse the repository at this point in the history
  • Loading branch information
MilanSkocic committed Nov 23, 2023
1 parent c7cc944 commit 0b71f31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ PLATFORM="linux"

IFS='-'
tmp=$(gcc -dumpmachine)
read -a tmp_arr <<< "$tmp"
ARCH="${tmp_arr[0]}"
read -A tmp_arr <<< "$tmp"
ARCH="${tmp_arr[1]}"

IFS="="
while read -r line; do
# Reading line by line
if [[ $line == "version"* ]] then
read -a tmp_arr <<< "$line"
VERSION=${tmp_arr[1]:2:5}
read -A tmp_arr <<< "$line"
VERSION=${tmp_arr[2]:2:5}
break
fi
done < "fpm.toml"
Expand Down

0 comments on commit 0b71f31

Please sign in to comment.