summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2022-03-30 12:32:58 -0400
committerGitHub <noreply@github.com>2022-03-30 12:32:58 -0400
commit30e654e62d5350c316f863610950fb2049539226 (patch)
treeb3aa71ac43accdb34029865066ba3f70919ac641
parentcdcc3097592428f41f1e2527d9d602291777605a (diff)
Fix coverity scan. (#12561)
-rw-r--r--.github/workflows/coverity.yml2
-rwxr-xr-xcoverity-scan.sh6
2 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml
index 07eb821621..1a5b923864 100644
--- a/.github/workflows/coverity.yml
+++ b/.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:
diff --git a/coverity-scan.sh b/coverity-scan.sh
index f8486de020..a745b07dd3 100755
--- a/coverity-scan.sh
+++ b/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
}