mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-29 04:01:02 -05:00
cleaner
This commit is contained in:
parent
c3a1403fa0
commit
7a775854e7
1 changed files with 1 additions and 1 deletions
|
@ -654,7 +654,7 @@ DetectKubernetesFile() {
|
|||
FILE="${1}" # File that we need to validate
|
||||
debug "Checking if ${FILE} is a Kubernetes descriptor..."
|
||||
|
||||
if grep -v 'kustomize.config.k8s.io' "${FILE}" | grep -v tekton "${FILE}" | grep -q -E '(apiVersion):'; then
|
||||
if grep -v 'kustomize.config.k8s.io' "${FILE}" | grep -v tekton | grep -q -E '(apiVersion):'; then
|
||||
debug "${FILE} is a Kubernetes descriptor"
|
||||
return 0
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue