Commit 9b6cc58
Matthew Fisher
fix(builder): call ls rather than using a wildcard
The wildcard caused an off-by-one error where if no git repositories
existed, the wildcard was then interpreted, causing all images prefixed
with the registry IP address to be removed inside builder.
As an example:
$ for repo in *.git; do echo $repo; done
*.git
$ for repo in $(ls | grep .git); do echo $repo; done
$ mkdir foo.git
$ for repo in *.git; do echo $repo; done
foo.git
$ for repo in $(ls | grep .git); do echo $repo; done
foo.git1 parent 1c9d34c commit 9b6cc58
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments