diff --git a/tests/oss-fuzz-build.sh b/tests/oss-fuzz-build.sh index caf7e8db4b..78e40a9a19 100755 --- a/tests/oss-fuzz-build.sh +++ b/tests/oss-fuzz-build.sh @@ -2,14 +2,14 @@ root=$(pwd) find parse/tests/* -maxdepth 0 -type d | while read target do - cd $root/$d + cd $root/$target fuzz_target=`echo $target | rev | cut -d'/' -f 1 | rev` compile_go_fuzzer github.com/tdewolff/parse/tests/$fuzz_target Fuzz parse-$fuzz_target-fuzzer done find minify/tests/* -maxdepth 0 -type d | while read target do - cd $root/$d + cd $root/$target fuzz_target=`echo $target | rev | cut -d'/' -f 1 | rev` compile_go_fuzzer github.com/tdewolff/minify/tests/$fuzz_target Fuzz minify-$fuzz_target-fuzzer done