From 92e56de2c009a3ced639c5650c284ebbd5b10b95 Mon Sep 17 00:00:00 2001 From: Gabriel Martinez Date: Fri, 8 Dec 2023 15:31:27 +0000 Subject: [PATCH] [CI] Run shellcheck on custom lint file Signed-off-by: Gabriel Martinez --- .github/linters/ct.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/linters/ct.yaml b/.github/linters/ct.yaml index 780b694e4602..4df12f8bf454 100644 --- a/.github/linters/ct.yaml +++ b/.github/linters/ct.yaml @@ -12,5 +12,5 @@ excluded-charts: # If not running on GCE, will error: "Failed to get GCE config" - prometheus-to-sd additional-commands: - - sh -c "if [ -f '{{ .Path }}/ci/lint.sh' ]; then exec bash '{{ .Path }}/ci/lint.sh'; fi" + - sh -ec "if [ -f '{{ .Path }}/ci/lint.sh' ]; then shellcheck '{{ .Path }}/ci/lint.sh'; bash '{{ .Path }}/ci/lint.sh'; fi" # - helm unittest --helm3 --strict --file unittests/*.yaml --file 'unittests/**/*.yaml' {{ .Path }}