mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-08 15:44:11 +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
|
- name: Cppcheck
|
||||||
run: |
|
run: |
|
||||||
# work around resource leak false positives on older and newer Linux distributions
|
# specify the version range to run cppcheck (cppcheck version number is x.y or x.y.z)
|
||||||
if cppcheck --version | awk '{if ($2 <= 1.86 || $2 >= 2.10) { exit(1) } }'; then
|
if cppcheck --version | sed -e 's/\./ /g' | awk '{if (($2 * 1000 + $3) <= 1086 || ($2 * 1000 + $3) >= 2010) { exit(1) } }'; then
|
||||||
make cppcheck
|
make cppcheck
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -165,7 +165,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Cppcheck
|
- name: Cppcheck
|
||||||
run: |
|
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
|
make cppcheck
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Shellcheck
|
- name: Shellcheck
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user