Commit 87fe80e
committed
workflows: scan all shell scripts
Instead of just scripts/*.sh, scan all scripts found in the repository
using `file`.
I didn't find a widely accepted mechanism to do this so settled on using
`file`. The script is at least not too long to follow, doesn't introduce
any external dependency, and is careful to avoid errors from unusual
characters in filenames (eg. backslash escapes and carriage returns) to
try and be safe against all inputs.
If this pattern works, we could extend it to the other lint checks in
this file.1 parent ca08110 commit 87fe80e
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
0 commit comments