From b077d9129a563461b397d750bf2ce33aab1506eb Mon Sep 17 00:00:00 2001 From: Joshua Root Date: Mon, 26 Feb 2024 14:40:00 +1100 Subject: [PATCH] fix option variable name --- mpbb-test-port | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mpbb-test-port b/mpbb-test-port index fe43bfb..2f1e846 100644 --- a/mpbb-test-port +++ b/mpbb-test-port @@ -25,12 +25,12 @@ EOF test-port() { local args parseopt builtin-only "$@" || return - # $option_builtin-only is set by parseopt + # $option_builtin_only is set by parseopt # shellcheck disable=SC2154 - : "${option_builtin-only=0}" + : "${option_builtin_only=0}" set -- ${args+"${args[@]}"} local test_run_flag - [[ "${option_builtin-only}" -eq 1 ]] && test_run_flag="test.run=no" + [[ "${option_builtin_only}" -eq 1 ]] && test_run_flag="test.run=no" local port=${1-} if [[ -z "$port" ]]; then err "Must specify a port"