parser/meta/run_on_files.sh

16 lines
174 B
Bash
Raw Normal View History

2022-07-21 20:37:16 +01:00
#!/usr/bin/env bash
set -xe
2022-07-21 20:37:16 +01:00
dir=$(realpath $1)
for file in $(find $dir -name "*.php")
do
cargo run -q -- $file
2022-07-21 20:37:16 +01:00
if [ $? -ne 0 ]
then
break
fi
done