Skip to content

Commit ced8ebe

Browse files
committed
Merge #317: Add support for run-bitcoind.sh start all
25c8bf6 Add support for run-bitcoind.sh start all (Jamil Lambert, PhD) Pull request description: On more than one occasion I have tried to start all nodes by passing `run all` or `start all` instead of just `all`. Handle this the same as passing `all` as the argument to the script. ACKs for top commit: tcharding: ACK 25c8bf6 Tree-SHA512: 9ab58f51e082a0db6c09b5131d2867d2e08e45901d8cc74a559104a6d5d5c92435f905bcfff8a4515405073aca83713c5ddba821a6a5ad7872ec44e26c47875f
2 parents bbd3d56 + 25c8bf6 commit ced8ebe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

contrib/run-bitcoind.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ main() {
5555
local cmd="${1:-usage}"
5656
local version="${2:-}"
5757

58+
# Handle 'run all' or 'start all' the same as 'all'
59+
if [ "$cmd" = "start" ] || [ "$cmd" = "run" ]; then
60+
if [ "$version" = "all" ]; then
61+
cmd="all"
62+
version=""
63+
fi
64+
fi
65+
5866
# FIXME: This is a hackish way to get the help flag.
5967
if [ "$cmd" = "usage" ] || [ "$cmd" = "-h" ] || [ "$cmd" = "--help" ] || [ "$cmd" = "help" ]; then
6068
usage

0 commit comments

Comments
 (0)