Skip to content
This repository was archived by the owner on Oct 10, 2020. It is now read-only.

Commit 57f26e7

Browse files
committed
fix errors in pre-commit hook
Change-Id: I143da402e1cff54a6b9193bc404040020494c638
1 parent 78bb3f8 commit 57f26e7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: tools/pre-commit-hook

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ cd $tmpdir
2121
echo "=== yaml checks ==="
2222

2323
(
24-
find . -name '*.yaml' -print0
25-
[ -d fragments ] &&
26-
find fragments -type f | xargs grep -l '^#cloud-config'
24+
find * \( -name '*.yaml' -o -exec grep -q '^#cloud-config' \; \) -print0
2725
) | xargs -0 python ${TOPLEVEL}/tools/validate-yaml.py -v || exit 1
2826

0 commit comments

Comments
 (0)