fix: support other localnet tags
This commit is contained in:
parent
0760853871
commit
11938e3a65
|
@ -62,8 +62,6 @@ update)
|
|||
if [[ -n $1 ]]; then
|
||||
channel="$1"
|
||||
fi
|
||||
[[ $channel = edge || $channel = beta ]] || usage "Invalid channel: $channel"
|
||||
|
||||
(
|
||||
set -x
|
||||
docker pull solanalabs/solana:"$channel"
|
||||
|
@ -75,14 +73,9 @@ up)
|
|||
[[ -n $2 ]] || usage "Invalid $1 argument"
|
||||
network="$2"
|
||||
shift 2
|
||||
elif [[ $1 = edge ]]; then
|
||||
channel=edge
|
||||
shift 1
|
||||
elif [[ $1 = beta ]]; then
|
||||
channel=beta
|
||||
shift 1
|
||||
else
|
||||
usage "Unknown argument: $1"
|
||||
channel=$1
|
||||
shift 1
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
|
@ -54,8 +54,8 @@
|
|||
"lint:watch": "watch 'npm run lint:fix' . --wait=1 --ignoreDirectoryPattern=/doc/",
|
||||
"localnet:down": "bin/localnet.sh down",
|
||||
"localnet:logs": "bin/localnet.sh logs -f",
|
||||
"localnet:up": "bin/localnet.sh up $npm_package_testnetDefaultChannel",
|
||||
"localnet:update": "bin/localnet.sh update $npm_package_testnetDefaultChannel",
|
||||
"localnet:up": "bin/localnet.sh up",
|
||||
"localnet:update": "bin/localnet.sh update",
|
||||
"ok": "run-s lint flow test doc",
|
||||
"prepare": "run-s clean bpf-sdk:install bpf-sdk:remove-symlinks build",
|
||||
"pretty": "prettier --write '{,{examples,src,test}/**/}*.js'",
|
||||
|
|
Loading…
Reference in New Issue