Commit 1bdeec6
committed
Fix the CI lint step feeding a bash script to the Python parser
The file discovery ran `find -exec head -1 {} \; -print` and then
`grep -B1 python3`. Because -print comes after head, the output is
shebang-then-path, so -B1 selected the path of the *previous* file rather than
the one whose shebang matched. neuros-firstboot (#!/bin/bash) got picked up
that way and ast.parse reported "SyntaxError: invalid syntax. Perhaps you
forgot a comma?", failing the job on every push since the check was added.
Replaced it with a plain glob that tests each file's own shebang. All 79
Python scripts under usr/local/bin parse.1 parent 13a3ada commit 1bdeec6
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
0 commit comments