Skip to content

Commit

Permalink
Avoid bash-specific syntax in makefile
Browse files Browse the repository at this point in the history
This fixes the problem described at [1] by replacing bash-specific array
syntax with a simpler sh-friendly for loop.

[1]: #3718 (review)
  • Loading branch information
cbeams committed Dec 3, 2019
1 parent 1453025 commit 234c228
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,15 @@ deploy: setup
# create a new screen session named 'localnet'
screen -dmS localnet
# deploy each node in its own named screen window
targets=('bitcoind' 'seednode' 'seednode2' 'alice' 'bob' 'mediator'); \
for t in "$${targets[@]}"; do \
screen -S localnet -X screen -t $$t; \
screen -S localnet -p $$t -X stuff "make $$t\n"; \
for target in \
bitcoind \
seednode \
seednode2 \
alice \
bob \
mediator; do \
screen -S localnet -X screen -t $$target; \
screen -S localnet -p $$target -X stuff "make $$target\n"; \
done;
# give bitcoind rpc server time to start
sleep 5
Expand Down

0 comments on commit 234c228

Please sign in to comment.