Commit 2010200
committed
fix(run_local): bash 3.2-safe optional-flag array expansion
The diff step expanded "${CHANGED_ONLY[@]}" etc. directly; on macOS's bash
3.2 an empty array under 'set -u' errors as 'unbound variable', so the full
local pipeline crashed at diff->mermaid whenever the optional flags weren't
passed. Use the ${arr[@]+"${arr[@]}"} idiom (elements when set, nothing when
empty) so it works on bash 3.2 and 4+.1 parent 0ec2e0f commit 2010200
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
0 commit comments