Commit d645507
authored
* fixed typo in make args in scripts/init.mk
* Handle missing ${name} in .tool-versions (fallback to "lastest")
With set -euo pipefail, this grep | ... | grep pipeline will terminate the
script when there is no matching docker/${name} entry in .tool-versions (a
normal case). The command substitution should tolerate no matches and fall back
to latest.
* 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.
* Unquote dangling image IDs to fix docker rmi cleanup
docker rmi --force "$(...)" quotes the list of dangling image IDs, which can
collapse multiple IDs into a single argument and prevent cleanup from working
correctly. Collect the IDs and pass them as separate arguments.
* tabs->spaces
1 parent 9c5ec7a commit d645507
2 files changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
191 | | - | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
251 | | - | |
| 252 | + | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments