Skip to content

Commit

Permalink
Revert "Try alternative to xargs in validate.sh"
Browse files Browse the repository at this point in the history
This reverts commit 1bc10a9.
  • Loading branch information
botder committed Oct 10, 2024
1 parent 1bc10a9 commit a305b3b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions tools/validate.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
#!/bin/bash

exit_code=0

find 'functions/' -name "*.yaml" -type f | while read -r file; do
tools/yajsv -s schemas/function.yaml "$file"

if [ $? -ne 0 ]; then
exit_code=1
fi
done

exit $exit_code
find 'functions/' -name '*.yaml' -type f -print0 | xargs -0 -I {} tools/yajsv -s schemas/function.yaml {}

0 comments on commit a305b3b

Please sign in to comment.