mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-22 16:58:55 +00:00
Fixed checking cppcheck version in ci.yml
This commit is contained in:
parent
2405706643
commit
38dc65180b
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -101,8 +101,8 @@ jobs:
|
||||
|
||||
- name: Cppcheck
|
||||
run: |
|
||||
# work around resource leak false positives on older and newer Linux distributions
|
||||
if cppcheck --version | awk '{if ($2 <= 1.86 || $2 >= 2.10) { exit(1) } }'; then
|
||||
# specify the version range to run cppcheck (cppcheck version number is x.y or x.y.z)
|
||||
if cppcheck --version | sed -e 's/\./ /g' | awk '{if (($2 * 1000 + $3) <= 1086 || ($2 * 1000 + $3) >= 2010) { exit(1) } }'; then
|
||||
make cppcheck
|
||||
fi
|
||||
|
||||
@ -165,7 +165,10 @@ jobs:
|
||||
|
||||
- name: Cppcheck
|
||||
run: |
|
||||
# specify the version range to run cppcheck (cppcheck version number is x.y or x.y.z)
|
||||
if cppcheck --version | sed -e 's/\./ /g' | awk '{if (($2 * 1000 + $3) <= 1086 || ($2 * 1000 + $3) >= 2010) { exit(1) } }'; then
|
||||
make cppcheck
|
||||
fi
|
||||
|
||||
- name: Shellcheck
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user