Commit 1c463fd
authored
Clarify check-docs.sh early-exit
In the event that there is no `.spi.yml` file, the script currently exits messily:
```
** Editing Package.swift...
** Checking documentation targets...
usage: yq [-h] [--yaml-output] [--yaml-roundtrip]
[--yaml-output-grammar-version {1.1,1.2}] [--width WIDTH]
[--indentless-lists] [--in-place] [--version]
[jq_filter] [files ...]
yq: error: argument files: can't open '.spi.yml': [Errno 2] No such file or directory: '.spi.yml'
** ✅ Found no documentation issues.
```
Not having an `.spi.yml` file is perfectly valid if the repository has no defined documentation targets. This change results in the following behavior:
```
** No '.spi.yml' found, no documentation targets to check.
```1 parent 3fca720 commit 1c463fd
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
0 commit comments