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 3b603e9 commit 1bc10a9Copy full SHA for 1bc10a9
tools/validate.sh
@@ -1,3 +1,13 @@
1
#!/bin/bash
2
3
-find 'functions/' -name '*.yaml' -type f -print0 | xargs -0 -I {} tools/yajsv -s schemas/function.yaml {}
+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
0 commit comments