From f1b1f3f27e3ea85d2436fabcd8659ffe751c1351 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Thu, 21 Mar 2024 17:21:56 -0700 Subject: [PATCH] fix(ci): switch script args --- ci/switch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/switch.sh b/ci/switch.sh index 2a07c8de..76841ecf 100644 --- a/ci/switch.sh +++ b/ci/switch.sh @@ -5,7 +5,7 @@ shift ARG_HOSTNAME=$(nf-hostname "$ARG_NODE") NIX_SSHOPTS=$(nf-sshopts "$ARG_NODE") -if [[ $# -gt 0 ]]; then +if [[ $# -gt 0 ]] && [[ ${1-} != -* ]]; then ARG_METHOD=$1 shift else