Skip to content

Commit

Permalink
cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
admiralAwkbar committed Oct 13, 2020
1 parent c3a1403 commit 7a77585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a77585

Please sign in to comment.