More quotes to pacify shellcheck
This commit is contained in:
parent
263577773f
commit
b4dc180592
|
@ -14,11 +14,11 @@ count=${2:-1}
|
|||
rsync_leader_url=$(rsync_url "$leader")
|
||||
|
||||
set -ex
|
||||
mkdir -p $SOLANA_CONFIG_DIR
|
||||
$rsync -vPz "$rsync_leader_url"/config/leader.json $SOLANA_CONFIG_DIR/
|
||||
$rsync -vPz "$rsync_leader_url"/config-private/mint.json $SOLANA_CONFIG_DIR/
|
||||
mkdir -p "$SOLANA_CONFIG_DIR"
|
||||
$rsync -vPz "$rsync_leader_url"/config/leader.json "$SOLANA_CONFIG_DIR"/
|
||||
$rsync -vPz "$rsync_leader_url"/config-private/mint.json "$SOLANA_CONFIG_DIR"/
|
||||
|
||||
# shellcheck disable=SC2086 # $solana_client_demo should not be quoted
|
||||
exec $solana_client_demo \
|
||||
-n "$count" -l $SOLANA_CONFIG_DIR/leader.json \
|
||||
< $SOLANA_CONFIG_DIR/mint.json
|
||||
-n "$count" -l "$SOLANA_CONFIG_DIR"/leader.json \
|
||||
< "$SOLANA_CONFIG_DIR"/mint.json
|
||||
|
|
|
@ -33,9 +33,9 @@ fi
|
|||
|
||||
rsync_leader_url=$(rsync_url "$leader")
|
||||
set -ex
|
||||
mkdir -p $SOLANA_CONFIG_DIR
|
||||
$rsync -vPz "$rsync_leader_url"/config/leader.json $SOLANA_CONFIG_DIR/
|
||||
mkdir -p "$SOLANA_CONFIG_DIR"
|
||||
$rsync -vPz "$rsync_leader_url"/config/leader.json "$SOLANA_CONFIG_DIR"/
|
||||
|
||||
# shellcheck disable=SC2086 # $solana_drone should not be quoted
|
||||
exec $solana_drone \
|
||||
-l $SOLANA_CONFIG_DIR/leader.json < $SOLANA_CONFIG_PRIVATE_DIR/mint.json
|
||||
-l "$SOLANA_CONFIG_DIR"/leader.json < "$SOLANA_CONFIG_PRIVATE_DIR"/mint.json
|
||||
|
|
|
@ -19,17 +19,17 @@ fi
|
|||
rsync_leader_url=$(rsync_url "$leader")
|
||||
|
||||
set -e
|
||||
mkdir -p $SOLANA_CONFIG_DIR
|
||||
if [[ ! -r $SOLANA_CONFIG_DIR/leader.json ]]; then
|
||||
$rsync -vPz "$rsync_leader_url"/config/leader.json $SOLANA_CONFIG_DIR/
|
||||
mkdir -p "$SOLANA_CONFIG_DIR"
|
||||
if [[ ! -r "$SOLANA_CONFIG_DIR"/leader.json ]]; then
|
||||
$rsync -vPz "$rsync_leader_url"/config/leader.json "$SOLANA_CONFIG_DIR"/
|
||||
fi
|
||||
|
||||
client_json=$SOLANA_CONFIG_DIR/client.json
|
||||
client_json="$SOLANA_CONFIG_DIR"/client.json
|
||||
if [[ ! -r $client_json ]]; then
|
||||
$solana_mint <<<0 > $client_json
|
||||
$solana_mint <<<0 > "$client_json"
|
||||
fi
|
||||
|
||||
set -x
|
||||
# shellcheck disable=SC2086 # $solana_wallet should not be quoted
|
||||
exec $solana_wallet \
|
||||
-l $SOLANA_CONFIG_DIR/leader.json -m $client_json "$@"
|
||||
-l "$SOLANA_CONFIG_DIR"/leader.json -m "$client_json" "$@"
|
||||
|
|
Loading…
Reference in New Issue