Merge pull request 'Fix fmt-my-stuff to work with paths that contain spaces.' (#981) from BaTnz-20210723/fix-fmt-my-stuff-2 into master

Reviewed-on: https://git.dn42.dev/dn42/registry/pulls/981
Reviewed-by: schema-checker <schema-checker@noreply.dn42.us>
This commit is contained in:
Simon Marsh 2021-07-23 09:01:16 +00:00
commit f64e212450

View file

@ -9,4 +9,4 @@ fi
BASE="$(readlink -f "$0" 2>/dev/null || python -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "$0")"
BASE="$(dirname "$BASE")"
grep -lr $1 $BASE/data/ | while read line; do utils/schema-check/dn42-schema.py fmt -i $line; done
grep -lr $1 "$BASE/data/" | while read line; do utils/schema-check/dn42-schema.py fmt -i "$line"; done