From 4fcd80177e3d6cc7a1e436156a58d5acfd9133e2 Mon Sep 17 00:00:00 2001 From: Tim Jago Date: Fri, 23 Jul 2021 16:36:27 +1200 Subject: [PATCH] Fix fmt-my-stuff to work with paths that contain spaces. --- fmt-my-stuff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fmt-my-stuff b/fmt-my-stuff index 8fc08d33b..e609c908f 100755 --- a/fmt-my-stuff +++ b/fmt-my-stuff @@ -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