bfe0d0e0e9
YAML files can have .yaml or .yml extension. Make `validate-all-yaml.sh` check for *.yml files in addition to *.yaml files since we now have some of these in our source tree. This should help to prevent bogus YAML files to land in the repository. Change-Id: Id59273680fc2424f7b636033b1d641efcaaeba22
9 lines
215 B
Bash
Executable File
9 lines
215 B
Bash
Executable File
#!/bin/sh
|
|
|
|
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
|
|
cd "$(dirname "$REAL_PATH")/.."
|
|
|
|
find . -name '*.yaml' -o -name '*.yml' -print0 |
|
|
xargs -0 python tools/validate-yaml.py || exit 1
|
|
|