Skip to content

Fix artifact deletion loop for zsh#4997

Merged
jtraglia merged 1 commit intoethereum:masterfrom
jtraglia:fix-zsh-loop
Mar 11, 2026
Merged

Fix artifact deletion loop for zsh#4997
jtraglia merged 1 commit intoethereum:masterfrom
jtraglia:fix-zsh-loop

Conversation

@jtraglia
Copy link
Member

@jtraglia jtraglia commented Mar 11, 2026

Replace for id in $artifact_ids with a while read pipeline. In zsh, unquoted variable expansion doesn't split on newlines like bash, so all artifact IDs were concatenated into a single invalid URL.

=== OLD (for loop) ===
DELETE repos/ethereum/consensus-specs/actions/artifacts/5862630587
5862459679
5862428433
5862419667

=== NEW (while read) ===
DELETE repos/ethereum/consensus-specs/actions/artifacts/5862630587
DELETE repos/ethereum/consensus-specs/actions/artifacts/5862459679
DELETE repos/ethereum/consensus-specs/actions/artifacts/5862428433
DELETE repos/ethereum/consensus-specs/actions/artifacts/5862419667

Replace `for id in $artifact_ids` with a `while read` pipeline. In zsh,
unquoted variable expansion doesn't split on newlines like bash, so all
artifact IDs were concatenated into a single invalid URL.
@jtraglia jtraglia merged commit ee0a49c into ethereum:master Mar 11, 2026
19 checks passed
@jtraglia jtraglia deleted the fix-zsh-loop branch March 11, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant