Skip to content

Commit 7cd11b7

Browse files
authored
Merge pull request #535 from FrameworkComputer/lint-fix
Fix linter when successful
2 parents 36d85b4 + ed23707 commit 7cd11b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: lint code in pull request
22

33
on:
44
pull_request:
5-
types: [opened, edited, reopened]
65

76
jobs:
87
build:
@@ -22,6 +21,7 @@ jobs:
2221
- name: checkpatch
2322
run: |
2423
git diff origin/${{ github.base_ref }} | ./checkpatch.pl --mailback --no-tree --ignore MAINTAINERS,FILE_PATH_CHANGES,SPDX_LICENSE_TAG - > checkpatch.txt || true
24+
exit=0
2525
if [ -s checkpatch.txt ]; then
2626
errors=$(cat checkpatch.txt)
2727
errors="${errors//'%'/'%25'}"
@@ -30,7 +30,7 @@ jobs:
3030
echo "::error file=Checkpatch.txt::$errors"
3131
exit=1
3232
fi
33-
if [ ${exit} == 1 ]; then
33+
if [ $exit = 1 ]; then
3434
exit 1;
3535
fi
3636
- name: output

0 commit comments

Comments
 (0)