From 02663c5deeb6ab30d18fc7fcd4adb0d6092e95f3 Mon Sep 17 00:00:00 2001 From: Lagrang3 Date: Sun, 4 Feb 2024 11:15:37 +0100 Subject: [PATCH] regtest: fix check for bitcoin-cli Fixes startup_regtest test that checks if bitcoin-cli, bitcoind, lightning-cli and lightningd are found as executables. --- contrib/startup_regtest.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/startup_regtest.sh b/contrib/startup_regtest.sh index e283fca02..a4e959e9c 100755 --- a/contrib/startup_regtest.sh +++ b/contrib/startup_regtest.sh @@ -56,11 +56,11 @@ fi if [ -z "$LIGHTNING_BIN" ]; then # Already installed maybe? Prints - if [ ! "$(type lightning-cli >/dev/null 2>&1)" ]; then + if ! type lightning-cli >/dev/null 2>&1 ; then echo lightning-cli: not found return 1 fi - if [ ! "$(type lightningd >/dev/null 2>&1)" ]; then + if ! type lightningd >/dev/null 2>&1 ; then echo lightningd: not found return 1 fi @@ -93,11 +93,11 @@ fi # shellcheck disable=SC2153 if [ -z "$BITCOIN_BIN" ]; then # Already installed maybe? Prints - if [ ! "$(type bitcoin-cli >/dev/null 2>&1)" ]; then + if ! type bitcoin-cli >/dev/null 2>&1 ; then echo bitcoin-cli: not found return 1 fi - if [ ! "$(type bitcoind >/dev/null 2>&1)" ]; then + if ! type bitcoind >/dev/null 2>&1 ; then echo bitcoind: not found return 1 fi