From 101b189c1250e8daaf7893c3a0f8fe12ae882a8f Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 1 May 2023 15:41:16 +0200 Subject: [PATCH] use npx --- apps/remix-ide/ci/downloadsoljson.sh | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) 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"