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