Skip to content

Commit

Permalink
Be less noisy
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Jul 15, 2018
1 parent e0eab51 commit 799c191
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions multinode-demo/wallet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,16 @@ rsync_leader_url=$(rsync_url "$leader")
set -e
mkdir -p "$SOLANA_CONFIG_CLIENT_DIR"
if [[ ! -r "$SOLANA_CONFIG_CLIENT_DIR"/leader.json ]]; then
(
set -x
$rsync -vPz "$rsync_leader_url"/config/leader.json "$SOLANA_CONFIG_CLIENT_DIR"/
)
echo "Fetching leader configuration from $rsync_leader_url"
$rsync -Pz "$rsync_leader_url"/config/leader.json "$SOLANA_CONFIG_CLIENT_DIR"/
fi

client_id_path="$SOLANA_CONFIG_CLIENT_DIR"/id.json
if [[ ! -r $client_id_path ]]; then
(
set -x
$solana_keygen -o "$client_id_path"
)
echo "Generating client identity: $client_id_path"
$solana_keygen -o "$client_id_path"
fi

set -x
# shellcheck disable=SC2086 # $solana_wallet should not be quoted
exec $solana_wallet \
-l "$SOLANA_CONFIG_CLIENT_DIR"/leader.json -k "$client_id_path" "$@"

0 comments on commit 799c191

Please sign in to comment.