fix: look for the default release channel harder

This commit is contained in:
Michael Vines 2018-11-30 08:17:28 -08:00
parent 96133216e5
commit b67581700b
1 changed files with 12 additions and 1 deletions

View File

@ -1,7 +1,18 @@
#!/usr/bin/env bash
set -e
channel=$(cd "$(dirname "$0")"; node -p 'require("../package.json")["solana-channel"]')
channel=$(
cd "$(dirname "$0")";
node -p '
let p;
try {
p = require("@solana/web3.js/package.json");
} catch (err) {
p = require("../package.json");
}
p["solana-channel"]
'
)
usage() {
exitcode=0