mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
regtest: fix check for bitcoin-cli
Fixes startup_regtest test that checks if bitcoin-cli, bitcoind, lightning-cli and lightningd are found as executables.
This commit is contained in:
parent
28c4a52aa6
commit
02663c5dee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user