update variable after install (#4292)
* update variable after install * normalize indent
Paweł Krupa committed
Sep 26, 2018 at 09:57 UTC
545eb2fd29abcf2be55f5ffc341a53d246558f8d
1 file changed
+7
-6
coverity-scan.sh
+7
-6
@@ -19,14 +19,15 @@ covbuild="$(which cov-build 2>/dev/null || command -v cov-build 2>/dev/null)"
19
([ -z "${covbuild}" ] && [ -f .coverity-build ]) && covbuild="$(<.coverity-build)"
20
if [ -z "${covbuild}" ]; then
21
echo "Cannot find 'cov-build' binary in \$PATH."
22
- if [ $INSTALL_COVERITY != "" ]; then
22
+ if [ "${INSTALL_COVERITY}" != "" ]; then
23
echo "Installing coverity..."
24
mkdir /tmp/coverity
25
- curl -SL --data "token=${token}&project=netdata%2Fnetdata" https://scan.coverity.com/download/linux64 > /tmp/coverity_tool.tar.gz
26
- tar -x -C /tmp/coverity/ -f /tmp/coverity_tool.tar.gz
27
- sudo mv /tmp/coverity/cov-analysis-linux64-2017.07 /opt/coverity
28
- export PATH=${PATH}:/opt/coverity/bin/
29
- else
25
+ curl -SL --data "token=${token}&project=netdata%2Fnetdata" https://scan.coverity.com/download/linux64 > /tmp/coverity_tool.tar.gz
26
+ tar -x -C /tmp/coverity/ -f /tmp/coverity_tool.tar.gz
27
+ sudo mv /tmp/coverity/cov-analysis-linux64-2017.07 /opt/coverity
28
+ export PATH=${PATH}:/opt/coverity/bin/
29
+ covbuild="$(which cov-build 2>/dev/null || command -v cov-build 2>/dev/null)"
30
+ else
31
echo "Save command the full filename of cov-build in .coverity-build"
32
exit 1
33
fi