1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-21 19:49:46 +00:00

Fix shellcheck Make target (ignore vendored files) ()

Before this change, the following error occurs for the shellcheck
target (which is a prerequisite for other targets like format):

```
In ./scripts/generate/vendor/github.com/ksonnet/ksonnet-lib/scripts/install_jsonnet.sh line 7:
JSONNET_VERSION=$
^-------------^ SC2034: JSONNET_VERSION appears unused. Verify use (or export if used externally).

For more information:
  https://www.shellcheck.net/wiki/SC2034 -- JSONNET_VERSION appears unused. V...
make: *** [Makefile:246: shellcheck] Error 1
```
This commit is contained in:
Gerard Ryan 2020-08-24 17:17:48 +01:00 committed by GitHub
parent 08a964702c
commit 000315b9aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -242,7 +242,7 @@ check-license:
.PHONY: shellcheck
shellcheck: $(SHELLCHECK_BINARY)
$(SHELLCHECK_BINARY) $(shell find . -type f -name "*.sh")
$(SHELLCHECK_BINARY) $(shell find . -type f -name "*.sh" -not -path "*/vendor/*")
###########
# Testing #