From ab56dfaa2285b5a4d11d32bbf5cbf07e09323b14 Mon Sep 17 00:00:00 2001 From: illuminatus Date: Wed, 15 Nov 2023 08:14:25 -0800 Subject: [PATCH] lint, handle unknown flags in case --- scripts/cnode-helper-scripts/mithril-client.sh | 4 ++++ scripts/cnode-helper-scripts/mithril-relay.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/scripts/cnode-helper-scripts/mithril-client.sh b/scripts/cnode-helper-scripts/mithril-client.sh index 30a2602585..3635bbbdb8 100755 --- a/scripts/cnode-helper-scripts/mithril-client.sh +++ b/scripts/cnode-helper-scripts/mithril-client.sh @@ -176,6 +176,10 @@ while getopts :duh opt; do usage exit 1 ;; + *) + usage + exit 1 + ;; esac done diff --git a/scripts/cnode-helper-scripts/mithril-relay.sh b/scripts/cnode-helper-scripts/mithril-relay.sh index c395c232da..6c104fddf9 100755 --- a/scripts/cnode-helper-scripts/mithril-relay.sh +++ b/scripts/cnode-helper-scripts/mithril-relay.sh @@ -208,6 +208,10 @@ while getopts :dlh opt; do usage exit 1 ;; + *) + usage + exit 1 + ;; esac done