mirror of
https://github.com/danog/parser.git
synced 2024-11-30 04:29:13 +01:00
meta: run_on_files
This commit is contained in:
parent
5fe2c9c6c5
commit
58504a95f4
13
meta/run_on_files.sh
Executable file
13
meta/run_on_files.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user