From 25c8bf6f8ad7d1214db5b90d33d0b20504afe8f2 Mon Sep 17 00:00:00 2001 From: "Jamil Lambert, PhD" Date: Fri, 1 Aug 2025 21:53:21 +0100 Subject: [PATCH] Add support for run-bitcoind.sh start all 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. --- contrib/run-bitcoind.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/contrib/run-bitcoind.sh b/contrib/run-bitcoind.sh index adfe4acc..51913574 100755 --- a/contrib/run-bitcoind.sh +++ b/contrib/run-bitcoind.sh @@ -55,6 +55,14 @@ main() { local cmd="${1:-usage}" local version="${2:-}" + # Handle 'run all' or 'start all' the same as 'all' + if [ "$cmd" = "start" ] || [ "$cmd" = "run" ]; then + if [ "$version" = "all" ]; then + cmd="all" + version="" + fi + fi + # FIXME: This is a hackish way to get the help flag. if [ "$cmd" = "usage" ] || [ "$cmd" = "-h" ] || [ "$cmd" = "--help" ] || [ "$cmd" = "help" ]; then usage