diff --git a/.github/linters/ct.yaml b/.github/linters/ct.yaml index 780b694e4602..bee41e160367 100644 --- a/.github/linters/ct.yaml +++ b/.github/linters/ct.yaml @@ -12,5 +12,9 @@ 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' + exec bash '{{ .Path }}/ci/lint.sh' + fi" # - helm unittest --helm3 --strict --file unittests/*.yaml --file 'unittests/**/*.yaml' {{ .Path }}