Skip to content

Commit

Permalink
BUG: Fix bash issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
MilanSkocic committed Nov 24, 2023
1 parent 0b71f31 commit 6bf9180
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ PLATFORM="linux"

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

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

0 comments on commit 6bf9180

Please sign in to comment.