Commit 074dbfa
authored
[Github][CI] Add quotes to 'find' command argument (#162570)
It appears that new [Build Tooling CI
Containers](https://github.com/llvm/llvm-project/actions/runs/18359418540/job/52299833688)
job run didn't actually push containers, but failed with error:
```
find: paths must precede expression: `ghcr.io-llvm-amd64-ci-ubuntu-24.04-lint-f1eb7e55428e.tar'
find: possible unquoted pattern after predicate `-iname'?
```
Proposed fix is in error message and I confirmed locally with such
setup:
```bash
$ ls -la
a.sh
ghcr.io-ci-a.tar
ghcr.io-ci-b.tar
$ cat a.sh
for f in $(find . -iname '*.tar'); do
echo $f
done
$ ./a.sh # lists fine with quotes but fails without.
```
Thought not sure how `Build CI Container` job push successfully: I
manually downloaded 900MB `tar` AMD-archive with two containers and
failed to `for`-loop over them without quotes, hence I add them to that
script as well.1 parent d0d2162 commit 074dbfa
File tree
2 files changed
+2
-2
lines changed- .github/workflows
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
0 commit comments