summaryrefslogtreecommitdiffstats
path: root/coverity-scan.sh
diff options
context:
space:
mode:
authorPaweł Krupa <pawel@krupa.net.pl>2018-09-29 01:09:34 +0200
committerCosta Tsaousis <costa@tsaousis.gr>2018-09-29 02:09:34 +0300
commita1b6a7f5328974aaddd7f631135c58e1d620c820 (patch)
treef834274490755daeddc0b445e9c75d18b71b88e1 /coverity-scan.sh
parent986e32a03b2f01ac09b23d7f1be28a2799d7fd3b (diff)
[cleanup crusade] Shellcheck (#4261)
* lint libreswan module * disable linting obsolete shell modules * shellcheck more shell modules * fix review; lint helper scripts * more shellcheck * fix SC2235 in apache.chart.sh * shellcheck last portion of charts.d scripts * final shellcheck; make travis blocking * fix cppcheck * fix indents; fix expansion * fix local var assignments
Diffstat (limited to 'coverity-scan.sh')
-rwxr-xr-xcoverity-scan.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/coverity-scan.sh b/coverity-scan.sh
index 016e21460f..1bf0a5804b 100755
--- a/coverity-scan.sh
+++ b/coverity-scan.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# shellcheck disable=SC2235
# To run this script you need to provide API token. This can be done either by:
# - Putting token in ".coverity-token" file
@@ -15,6 +16,7 @@ if [ -z "${token}" ]; then
exit 1
fi
+# shellcheck disable=SC2230
covbuild="$(which cov-build 2>/dev/null || command -v cov-build 2>/dev/null)"
([ -z "${covbuild}" ] && [ -f .coverity-build ]) && covbuild="$(<.coverity-build)"
if [ -z "${covbuild}" ]; then
@@ -26,6 +28,7 @@ if [ -z "${covbuild}" ]; then
tar -x -C /tmp/coverity/ -f /tmp/coverity_tool.tar.gz
sudo mv /tmp/coverity/cov-analysis-linux64-2017.07 /opt/coverity
export PATH=${PATH}:/opt/coverity/bin/
+ # shellcheck disable=SC2230
covbuild="$(which cov-build 2>/dev/null || command -v cov-build 2>/dev/null)"
else
echo "Save command the full filename of cov-build in .coverity-build"