summaryrefslogtreecommitdiffstats
path: root/cppcheck.sh
diff options
context:
space:
mode:
authorPaweł Krupa <pawel@krupa.net.pl>2018-09-12 23:18:19 +0200
committerCosta Tsaousis <costa@tsaousis.gr>2018-09-13 00:18:19 +0300
commit0426209eadb5ea4a8ad473b811b0366b7c0d8c80 (patch)
tree906f9ac8e454cd48e073f18389e281f63bae7913 /cppcheck.sh
parent98300601b3dd408364afa0fe06ff24e8b3d23d55 (diff)
[cleanup crusade] linting shell scripts for docker, tests and python (#4162)
* shell linting various scripts * remove python-modules-installer.sh.in
Diffstat (limited to 'cppcheck.sh')
-rwxr-xr-xcppcheck.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/cppcheck.sh b/cppcheck.sh
index 08f24dc364..152baf37a2 100755
--- a/cppcheck.sh
+++ b/cppcheck.sh
@@ -17,7 +17,7 @@ cd "${base}/src" || exit 1
file="${1}"
shift
-[ "${file}" = "${base}" -o -z "${file}" ] && file="${base}/src"
+([ "${file}" = "${base}" ] || [ -z "${file}" ]) && file="${base}/src"
"${cppcheck}" \
-j ${processors} \