Skip to content

Commit 0187473

Browse files
committed
Fix linter when successful
When successful `$exit` wouldn't be set. Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent ee6dea0 commit 0187473

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- name: checkpatch
2323
run: |
2424
git diff origin/${{ github.base_ref }} | ./checkpatch.pl --mailback --no-tree --ignore MAINTAINERS,FILE_PATH_CHANGES,SPDX_LICENSE_TAG - > checkpatch.txt || true
25+
exit=0
2526
if [ -s checkpatch.txt ]; then
2627
errors=$(cat checkpatch.txt)
2728
errors="${errors//'%'/'%25'}"
@@ -30,7 +31,7 @@ jobs:
3031
echo "::error file=Checkpatch.txt::$errors"
3132
exit=1
3233
fi
33-
if [ ${exit} == 1 ]; then
34+
if [ $exit = 1 ]; then
3435
exit 1;
3536
fi
3637
- name: output

0 commit comments

Comments
 (0)