Skip to content

fix(scripts): handle empty PRERELEASE_FLAG array under set -u#418

Merged
ojongerius merged 1 commit into
mainfrom
worktree-fix-release-script
May 16, 2026
Merged

fix(scripts): handle empty PRERELEASE_FLAG array under set -u#418
ojongerius merged 1 commit into
mainfrom
worktree-fix-release-script

Conversation

@ojongerius
Copy link
Copy Markdown
Contributor

Bash set -u treats ${array[@]} as unbound when the array is empty. Use the ${var[@]+"${var[@]}"} idiom to expand safely — empty array expands to nothing, non-empty expands normally.

@ojongerius ojongerius merged commit 5ba1a11 into main May 16, 2026
8 checks passed
@ojongerius ojongerius deleted the worktree-fix-release-script branch May 16, 2026 01:15
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