From 9e614bd0f7cced68d27dd6aace5b4b19e35cbcb7 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Tue, 12 May 2026 16:08:56 +0200 Subject: [PATCH] fix(streamlit): saved_args empty-array expansion (ref #95) set -- "${saved_args[@]:-}" produces a single empty positional argument when the array is empty, which the case-statement then sees as Unknown flag "". Use "${saved_args[@]}" (no :-) which gives zero positional args correctly on empty. Co-Authored-By: Claude Opus 4.7 (1M context) --- scripts/streamlit-ingest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/streamlit-ingest.sh b/scripts/streamlit-ingest.sh index e3641b09..6bfa6c9c 100755 --- a/scripts/streamlit-ingest.sh +++ b/scripts/streamlit-ingest.sh @@ -59,7 +59,7 @@ saved_args=( "$@" ) set -- log "Pre-flight 1: SSH path" ssh_preflight >>"$LOG" 2>&1 || fail_pre "SSH preflight failed (run scripts/lib/gitea-ssh-preflight.sh --enrol if needed)" -set -- "${saved_args[@]:-}" +set -- "${saved_args[@]}" log "Pre-flight 2: push-create probe" probe_out=$(ssh "root@$LXC_HOST" "$(cat <<'EOPROBE'