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) (#3427)
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:
parent
08a964702c
commit
000315b9aa
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -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 #
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue