parser/meta/run_on_files.sh
2022-08-10 00:46:27 +01:00

18 lines
205 B
Bash
Executable File

#!/usr/bin/env bash
set -xe
dir=$(realpath $1)
cargo build --release
for file in $(find $dir -name "*.php")
do
./target/release/phpast $file
if [ $? -ne 0 ]
then
break
fi
done