We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bc10a9 commit a305b3bCopy full SHA for a305b3b
tools/validate.sh
@@ -1,13 +1,3 @@
1
#!/bin/bash
2
3
-exit_code=0
4
-
5
-find 'functions/' -name "*.yaml" -type f | while read -r file; do
6
- tools/yajsv -s schemas/function.yaml "$file"
7
8
- if [ $? -ne 0 ]; then
9
- exit_code=1
10
- fi
11
-done
12
13
-exit $exit_code
+find 'functions/' -name '*.yaml' -type f -print0 | xargs -0 -I {} tools/yajsv -s schemas/function.yaml {}
0 commit comments