Commit e5faafb
committed
docs: use a real chip name in the uvx example, not a <chip> placeholder
Qodo caught this on #128. `<chip>` inside a bash block is not an inert
placeholder — the shell splits it into two redirections:
$ cd /tmp/cn && : > chip
$ bash -c 'echo ARGS: defib burn -c <chip> -p /dev/ttyUSB0 -t'
$ cat ./-p
ARGS: defib burn -c /dev/ttyUSB0 -t
`<chip` redirects stdin, then `>` with the following word redirects
stdout into a file literally named `-p`. What defib actually receives is
`-c /dev/ttyUSB0 -t`, so the chip name becomes the port. Without a file
named `chip` in the cwd it fails "chip: No such file or directory"; with
one it runs the wrong command and drops a junk `-p` file that is
awkward to delete.
Use hi3516ev300, matching every other example in the README, and say to
substitute. The web/index.html line is unaffected — it interpolates the
selected chip before display.1 parent 291e724 commit e5faafb
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments