mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
contrib: make stricter shellcheck from Ubuntu 18.04 happy
In contrib/bootstrap-node.sh line 7:
if type lightning-cli >/dev/null 2>&1; then
^-- SC2039: In POSIX sh, 'type' is undefined.
In contrib/startup_regtest.sh line 41:
type lightning-cli || return
^-- SC2039: In POSIX sh, 'type' is undefined.
In contrib/startup_regtest.sh line 42:
type lightningd || return
^-- SC2039: In POSIX sh, 'type' is undefined.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
3d851541f4
commit
997af6f3f4
@@ -4,6 +4,7 @@
|
||||
set -e
|
||||
|
||||
# If lightning-cli not in their path, assume it's in subdir.
|
||||
# shellcheck disable=SC2039
|
||||
if type lightning-cli >/dev/null 2>&1; then
|
||||
LCLI=lightning-cli
|
||||
elif [ -x cli/lightning-cli ]; then
|
||||
|
||||
Reference in New Issue
Block a user