Generate a client-specific mint.json

This commit is contained in:
Michael Vines 2018-06-29 22:56:23 -07:00 committed by Greg Fitzgerald
parent d63493a852
commit 5671da4a0a
1 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,11 @@ set -ex
mkdir -p $SOLANA_CONFIG_DIR
rsync -vPz "$rsync_leader_url"/config/leader.json $SOLANA_CONFIG_DIR/
client_json=$SOLANA_CONFIG_DIR/client.json
if [[ ! -r $client_json ]]; then
$solana_mint <<<0 > $client_json
fi
# shellcheck disable=SC2086 # $solana_wallet should not be quoted
exec $solana_wallet \
-l $SOLANA_CONFIG_DIR/leader.json -m $SOLANA_CONFIG_DIR/mint.json "$@"
-l $SOLANA_CONFIG_DIR/leader.json -m $client_json "$@"