@cryptotaxi247 / netdata-1 / commits / dd3163900

fix COVERITY_PATH added with INSTALL_DIR into PATH (#13014)

maneamarius committed May 26, 2022 at 22:55 UTC dd3163900a1bddbe6f5eb64af7f79736dddd9180
1 file changed +4 -4
coverity-scan.sh
+4 -4
@@ -87,8 +87,8 @@ debugrun() {
87
88 scanit() {
89 progress "Scanning using coverity"
90 - COVERITY_PATH=$(find /opt/ -maxdepth 1 -name 'cov*linux*')
91 - export PATH=${PATH}:${INSTALL_DIR}/${COVERITY_PATH}/bin/
90 + COVERITY_PATH=$(find "${INSTALL_DIR}" -maxdepth 1 -name 'cov*linux*')
91 + export PATH=${PATH}:${COVERITY_PATH}/bin/
92 covbuild="${COVERITY_BUILD_PATH}"
93 [ -z "${covbuild}" ] && covbuild="$(which cov-build 2> /dev/null || command -v cov-build 2> /dev/null)"
94
@@ -147,8 +147,8 @@ installit() {
147
148 run sudo tar -z -x -f "${TMP_DIR}/${COVERITY_BUILD_VERSION}.tar.gz" || exit 1
149 rm "${TMP_DIR}/${COVERITY_BUILD_VERSION}.tar.gz"
150 - COVERITY_PATH=$(find /opt/ -maxdepth 1 -name 'cov*linux*')
151 - export PATH=${PATH}:${INSTALL_DIR}/${COVERITY_PATH}/bin/
150 + COVERITY_PATH=$(find "${INSTALL_DIR}" -maxdepth 1 -name 'cov*linux*')
151 + export PATH=${PATH}:${COVERITY_PATH}/bin/
152 elif find . -name "*.tar.gz" > /dev/null 2>&1; then
153 fatal "Downloaded coverity tool tarball does not appear to be the version we were expecting, exiting."
154 else