Fix fmt-my-stuff to work with paths that contain spaces.

This commit is contained in:
Tim Jago 2021-07-23 16:36:27 +12:00
parent 220e427543
commit 4fcd80177e
No known key found for this signature in database
GPG Key ID: 9AC4482A4403CD4F
1 changed files with 1 additions and 1 deletions

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