Look for bash shebang from start of the line (#4918)
Signed-off-by: Igor <igor@armbian.com>
This commit is contained in:
parent
c4d27ab073
commit
e04d91ee4b
2
.github/workflows/lint-scripts-pr.yml
vendored
2
.github/workflows/lint-scripts-pr.yml
vendored
@ -35,7 +35,7 @@ jobs:
|
||||
ret=0
|
||||
|
||||
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
|
||||
if grep -qE "#\!/" $file; then
|
||||
if grep -qE "^#\!/" $file; then
|
||||
|
||||
shellcheck --severity=error $file || ret=$?
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user