diff --git a/apps/remix-ide/ci/downloadsoljson.sh b/apps/remix-ide/ci/downloadsoljson.sh index 6f7f10b081..e3598e90bc 100644 --- a/apps/remix-ide/ci/downloadsoljson.sh +++ b/apps/remix-ide/ci/downloadsoljson.sh @@ -8,26 +8,14 @@ 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') +version=$(cat list.json | npx jq -r '.latestRelease') echo $version # the value of releases with key $version -url=$(cat list.json | jq -r '.releases[]' | grep "$version+") +url=$(cat list.json | npx jq -r '.releases[]' | grep "$version+") echo $url # set path to the url path="https://binaries.soliditylang.org/bin/$url"