diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-01-20 17:44:06 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-01-20 17:44:06 +0000 |
| commit | 671d21d7c2f57bcfcb91c412de61b0c7ec29e792 (patch) | |
| tree | b419e462d6cecf22c96ae3dd44e6320bf77ae4c1 /tools/validate-all-json.sh | |
| parent | 6772962c725c5f1f6bf580461b915949db84f802 (diff) | |
| parent | 13799455c20074cad967a0b6fbe50b883163b4fd (diff) | |
| download | kolla-671d21d7c2f57bcfcb91c412de61b0c7ec29e792.tar.gz kolla-671d21d7c2f57bcfcb91c412de61b0c7ec29e792.zip | |
Merge "Make scripts work on latest Atomic images"
Diffstat (limited to 'tools/validate-all-json.sh')
| -rwxr-xr-x | tools/validate-all-json.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/validate-all-json.sh b/tools/validate-all-json.sh index ce85fadd6..87f1a9918 100755 --- a/tools/validate-all-json.sh +++ b/tools/validate-all-json.sh @@ -1,9 +1,8 @@ #!/bin/sh -TOPLEVEL=$(git rev-parse --show-toplevel) +REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')") +cd "$(dirname "$REAL_PATH")/.." -cd $TOPLEVEL - -git ls-files -z '*.json' | +find . -name '*.json' -print0 | xargs -0 python tools/validate-json.py || exit 1 |
