meta: run_on_files

This commit is contained in:
Ryan Chandler 2022-07-21 20:37:16 +01:00
parent 5fe2c9c6c5
commit 58504a95f4
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

13
meta/run_on_files.sh Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
dir=$(realpath $1)
for file in $(find $dir -name "*.php")
do
cargo run -- $file --lexer
if [ $? -ne 0 ]
then
break
fi
done