Commit 5118a8b
authored
Fix non-portable
The SNAPSHOT check used `find -iname 'Cargo.toml'` without a starting
path. GNU find tolerates this, but BSD find (macOS) rejects it with
`find: illegal option -- i`. The error makes the piped `xargs grep`
receive no input and return non-zero, so the `if` silently evaluates
false and the SNAPSHOT check is skipped on macOS rather than running.
Add the explicit `.` starting path so the check works on both GNU and
BSD find.
Co-authored-by: Isaacfind -iname in verify-release-candidate.sh (#1613)1 parent a4cf887 commit 5118a8b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
0 commit comments