Skip to content

Commit

Permalink
contrib: Respect quoted args in simnet ctl scripts.
Browse files Browse the repository at this point in the history
This modifies the ctl convenience scripts generated by the the simnet
environment setup script to respect quoted arguments passed to it.
  • Loading branch information
davecgh committed Aug 4, 2020
1 parent 7b0968b commit fa984bf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contrib/dcr_tmux_simnet_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# The primary dcrd node (dcrd1) is configured as the primary mining node.
#
# Network layout:
# dcrd1 (p2p: localhost:19555) <-> dcrd2 (p2p: localhost:19565)
# dcrd1 (p2p: localhost:19555) <-- dcrd2 (p2p: localhost:19565)
#
# RPC layout:
# dcrd1 (JSON-RPC: localhost:19556)
Expand Down Expand Up @@ -90,7 +90,7 @@ tmux send-keys "cd ${NODES_ROOT}/${PRIMARY_DCRD_NAME}" C-m

cat > "${NODES_ROOT}/${PRIMARY_DCRD_NAME}/ctl" <<EOF
#!/usr/bin/env bash
dcrctl -C ../dcrctl.conf \$*
dcrctl -C ../dcrctl.conf "\$@"
EOF
chmod +x "${NODES_ROOT}/${PRIMARY_DCRD_NAME}/ctl"

Expand Down Expand Up @@ -135,7 +135,7 @@ tmux send-keys "cd ${NODES_ROOT}/${PRIMARY_WALLET_NAME}" C-m

cat > "${NODES_ROOT}/${PRIMARY_WALLET_NAME}/ctl" <<EOF
#!/usr/bin/env bash
dcrctl -C ../dcrctl.conf --wallet -c ./data/rpc.cert \$*
dcrctl -C ../dcrctl.conf --wallet -c ./data/rpc.cert "\$@"
EOF
chmod +x "${NODES_ROOT}/${PRIMARY_WALLET_NAME}/ctl"

Expand Down Expand Up @@ -180,7 +180,7 @@ SECONDARY_DCRD_P2P=127.0.0.1:19565
SECONDARY_DCRD_RPC=127.0.0.1:19566
cat > "${NODES_ROOT}/${SECONDARY_DCRD_NAME}/ctl" <<EOF
#!/usr/bin/env bash
dcrctl -C ../dcrctl.conf -s ${SECONDARY_DCRD_RPC} \$*
dcrctl -C ../dcrctl.conf -s ${SECONDARY_DCRD_RPC} "\$@"
EOF
chmod +x "${NODES_ROOT}/${SECONDARY_DCRD_NAME}/ctl"

Expand Down Expand Up @@ -229,7 +229,7 @@ tmux send-keys "cd ${NODES_ROOT}/${SECONDARY_WALLET_NAME}" C-m

cat > "${NODES_ROOT}/${SECONDARY_WALLET_NAME}/ctl" <<EOF
#!/usr/bin/env bash
dcrctl -C ../dcrctl.conf -c ./data/rpc.cert -s ${SECONDARY_WALLET_RPC} \$*
dcrctl -C ../dcrctl.conf -c ./data/rpc.cert -s ${SECONDARY_WALLET_RPC} "\$@"
EOF
chmod +x "${NODES_ROOT}/${SECONDARY_WALLET_NAME}/ctl"

Expand Down

0 comments on commit fa984bf

Please sign in to comment.