pull/3668/head^2
filip mertens 2 years ago
parent 6bb5aa3b0e
commit 3b5dd850a3
  1. 15
      apps/remix-ide/ci/downloadsoljson.sh

@ -8,13 +8,26 @@ then
exit
fi
# install jq if not installed
if ! command -v jq &> /dev/null
then
echo "jq could not be found"
echo "installing jq"
sudo apt-get install jq
fi
if ! command -v jq &> /dev/null
then
echo "jq could not be found"
exit
fi
# download https://binaries.soliditylang.org/wasm/list.json as json
curl https://binaries.soliditylang.org/wasm/list.json > list.json
# get the latest version
version=$(cat list.json | jq -r '.latestRelease')
echo $version
# the value of releases with key $version
url=$(cat list.json | npx jq -r '.releases[]' | grep "$version+")
url=$(cat list.json | jq -r '.releases[]' | grep "$version+")
echo $url
# set path to the url
path="https://binaries.soliditylang.org/bin/$url"

Loading…
Cancel
Save