Skip to content

Instantly share code, notes, and snippets.

@kadel
Created January 4, 2018 14:23
Show Gist options
  • Select an option

  • Save kadel/4be5a43ae8827b7bf916032ea69c3fde to your computer and use it in GitHub Desktop.

Select an option

Save kadel/4be5a43ae8827b7bf916032ea69c3fde to your computer and use it in GitHub Desktop.
#/bin/bash
# temporary file to save output
output=`mktemp`
for file in `find docs/examples examples -name "*.yaml"`; do
./kedge generate --enable-validation -f $file > $output 2>&1
if [ $? -ne 0 ]; then
echo "validation failed for $file"
cat $output
echo ""
fi
done
rm $output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment