fix: syntax

This commit is contained in:
Dict Xiong
2026-08-13 16:26:51 +08:00
parent f67ed12e49
commit 41cb0fe549
3 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ if [[ "${BASH_SOURCE[0]}" != "${0}" && "$DFS_SKIP_ARG_PARSE" != "1" ]]; then
ORIGIN_ARGS=("$@")
ARG=""
GOT_OPTS=()
while [[ $# > 0 || -n "$ARG" ]]; do
while [[ $# -gt 0 || -n "$ARG" ]]; do
if [[ -z "$ARG" ]]; then
if [[ "$1" == "--" ]]; then GOT_OPTS+=("$@"); break; fi
ARG="$1"; shift;