fix(scripts): normalise rg paths with sed instead of --path-separator
MSYS mangles the single-byte separator argument on Windows, and the swallowed rg error made the Input check pass vacuously. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
4da0ce3525
commit
41c86a408e
1 file changed
+2
-1
@@ -107,7 +107,8 @@ if [ -d game ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
input_violations="$(
|
input_violations="$(
|
||||||
rg -n --path-separator / '\bInput\.' game --glob '*.gd' \
|
rg -n '\bInput\.' game --glob '*.gd' \
|
||||||
|
| sed 's#\\#/#g' \
|
||||||
| rg -v '^game/infrastructure/input/' \
|
| rg -v '^game/infrastructure/input/' \
|
||||||
|| true
|
|| true
|
||||||
)"
|
)"
|
||||||
|
|||||||
Reference in new issue
Block a user