Skip to content

Commit

Permalink
regtest: fix check for bitcoin-cli
Browse files Browse the repository at this point in the history
Fixes startup_regtest test that checks if bitcoin-cli, bitcoind,
lightning-cli and lightningd are found as executables.
  • Loading branch information
Lagrang3 authored and cdecker committed Feb 4, 2024
1 parent 28c4a52 commit 02663c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contrib/startup_regtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 02663c5

Please sign in to comment.