fix: add solana-bpf-sdk-install command to permit users to easily update their bpf-sdk

This commit is contained in:
Michael Vines
2019-06-18 19:38:01 -07:00
parent 53f2c84fab
commit 9e30c6f827
4 changed files with 43 additions and 17 deletions

View File

@ -1,18 +1,7 @@
#!/usr/bin/env bash
set -e
channel=$(
cd "$(dirname "$0")";
node -p '
let p = [
"../lib/node_modules/@solana/web3.js/package.json",
"../@solana/web3.js/package.json",
"../package.json"
].find(require("fs").existsSync);
if (!p) throw new Error("Unable to locate solana-web3.js directory");
require(p)["testnetDefaultChannel"]
'
)
channel=$("$(dirname "$0")"/testnet-default-channel.js)
usage() {
exitcode=0