Commit d77849f
committed
ci: add the trailing newline the redirect canary needs
The canary failed with exit 1 and printed nothing at all, which looked
like a redirect finding and was not. `curl -w` emits no trailing newline,
and `read` returns non-zero at EOF even when it has assigned every
variable, so `set -e` killed the step before its first echo.
Reproduced directly:
read -r a b < <(printf 'X Y') -> exit 1, no output
read -r a b < <(printf 'X Y\n') -> exit 0, "a=X b=Y"
Adds `\n` to the -w format and a comment recording why it is load-bearing,
since the failure mode is silent and easy to reintroduce.
Signed-off-by: Mark Chmarny <mark@chmarny.com>1 parent bb1762d commit d77849f
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
167 | 171 | | |
168 | 172 | | |
169 | 173 | | |
170 | | - | |
| 174 | + | |
171 | 175 | | |
172 | 176 | | |
173 | 177 | | |
| |||
0 commit comments