mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 09:14:33 +00:00
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) <noreply@anthropic.com>
This commit is contained in:
parent
ef047dfba1
commit
9e614bd0f7
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user