Commit b050843
committed
fix pipefail and || precedence in content= pipeline
content=$(grep ...; grep -v ... ||: | grep -v ...) has two issues under set -euo
pipefail: (1) the first grep will exit non-zero when there are no Docker-
specific entries, which will abort the script; and (2) due to ||/| precedence,
the grep -v "^#" filter is not applied when the second grep -v succeeds. This
can break Docker builds in repos without docker/ entries in .tool-versions.1 parent 18512cd commit b050843
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
0 commit comments