From 30e654e62d5350c316f863610950fb2049539226 Mon Sep 17 00:00:00 2001 From: "Austin S. Hemmelgarn" Date: Wed, 30 Mar 2022 12:32:58 -0400 Subject: [PATCH] Fix coverity scan. (#12561) --- .github/workflows/coverity.yml | 2 +- coverity-scan.sh | 6 +++--- 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 }