From 997af6f3f4ddda085504125396951e04a5905ee0 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 21 Aug 2019 16:48:05 +0930 Subject: [PATCH] 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 --- contrib/bootstrap-node.sh | 1 + contrib/startup_regtest.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/contrib/bootstrap-node.sh b/contrib/bootstrap-node.sh index 8d71abf49..13c26eae9 100644 --- a/contrib/bootstrap-node.sh +++ b/contrib/bootstrap-node.sh @@ -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 diff --git a/contrib/startup_regtest.sh b/contrib/startup_regtest.sh index c78e52d5d..517f9083f 100755 --- a/contrib/startup_regtest.sh +++ b/contrib/startup_regtest.sh @@ -38,7 +38,9 @@ fi if [ -z "$PATH_TO_LIGHTNING" ]; then # Already installed maybe? Prints + # shellcheck disable=SC2039 type lightning-cli || return + # shellcheck disable=SC2039 type lightningd || return LCLI=lightning-cli LIGHTNINGD=lightningd