Skip to content

Commit a305b3b

Browse files
committed
Revert "Try alternative to xargs in validate.sh"
This reverts commit 1bc10a9.
1 parent 1bc10a9 commit a305b3b

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

tools/validate.sh

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
#!/bin/bash
22

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
3+
find 'functions/' -name '*.yaml' -type f -print0 | xargs -0 -I {} tools/yajsv -s schemas/function.yaml {}

0 commit comments

Comments
 (0)