mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use mapfile instead of () for reading multiple lines as separate array items
This commit is contained in:
parent
a05f3a608d
commit
dbfd3db038
@ -66,11 +66,12 @@ function versionEqual()
|
||||
function getAllAvailableVersions()
|
||||
{
|
||||
allVersions=()
|
||||
local allListedVersions=( $(
|
||||
local allListedVersions
|
||||
mapfile -t allListedVersions <<< "$(
|
||||
wget -q -O- https://binaries.soliditylang.org/bin/list.txt |
|
||||
grep -Po '(?<=soljson-v)\d+.\d+.\d+(?=\+commit)' |
|
||||
sort -V
|
||||
) )
|
||||
)"
|
||||
for listed in "${allListedVersions[@]}"
|
||||
do
|
||||
if versionGreater "$listed" "0.4.10"
|
||||
|
Loading…
Reference in New Issue
Block a user