Browse Source

Fix coverity scan. (#12561)

Austin S. Hemmelgarn 2 years ago
parent
commit
30e654e62d
2 changed files with 4 additions and 4 deletions
  1. 1 1
      .github/workflows/coverity.yml
  2. 3 3
      coverity-scan.sh

+ 1 - 1
.github/workflows/coverity.yml

@@ -41,7 +41,7 @@ jobs:
           COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
           COVERITY_SCAN_SUBMIT_MAIL: ${{ secrets.COVERITY_SCAN_SUBMIT_MAIL }}
         run: |
-          ./coverity-scan.sh --with-install
+          sh -x ./coverity-scan.sh --with-install
       - name: Failure Notification
         uses: rtCamp/action-slack-notify@v2
         env:

+ 3 - 3
coverity-scan.sh

@@ -159,11 +159,11 @@ installit() {
     fatal "Failed to install coverity."
   fi
 
-  # Clean temp directory
-  [ -n "${TMP_DIR}" ] && rm -rf "${TMP_DIR}"
-
   progress "Coverity scan tools are installed."
   cd "$ORIGINAL_DIR"
+
+  # Clean temp directory
+  [ -n "${TMP_DIR}" ] && rm -rf "${TMP_DIR}"
   return 0
 }