Browse Source

Fix detection of Coverity archive in scan script. (#18104)

Austin S. Hemmelgarn 8 months ago
parent
commit
d3529e159f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packaging/utils/coverity-scan.sh

+ 1 - 1
packaging/utils/coverity-scan.sh

@@ -168,7 +168,7 @@ installit() {
   debugrun curl --remote-name --remote-header-name --show-error --location --data "token=${token}&project=${repo}" https://scan.coverity.com/download/linux64
 
   if [ -z "${COVERITY_BUILD_VERSION}" ]; then
-    COVERITY_ARCHIVE="$(find  "${TMP_DIR}" -maxdepth 0 -name 'cov-analysis-linux64-*.tar.gz' | cut -f 2 -d '/' | head -n 1)"
+    COVERITY_ARCHIVE="$(find  "${TMP_DIR}" -maxdepth 1 -mindepth 1 -name 'cov-analysis-linux64-*.tar.gz' | cut -f 2 -d '/' | head -n 1)"
   else
     COVERITY_ARCHIVE="${TMP_DIR}/${COVERITY_BUILD_VERSION}.tar.gz"
   fi