test(fuzz): Bug fix: find was missing -type f

This commit is contained in:
Chris Hennick 2024-06-28 10:49:36 -07:00
parent acb05fc42f
commit 9d650d568b
No known key found for this signature in database
GPG key ID: DA47AABA4961C509

View file

@ -2,7 +2,7 @@
i=0
rm -rf "fuzz/corpus/fuzz_$1_iter_0" || true
mkdir "fuzz/corpus/fuzz_$1_iter_0"
find "fuzz/corpus/fuzz_$1" -exec mv '{}' "fuzz/corpus/fuzz_$1_iter_0" ';'
find "fuzz/corpus/fuzz_$1" -type f -exec mv '{}' "fuzz/corpus/fuzz_$1_iter_0" ';'
while true; do
j=$((i + 1))
rm -rf "fuzz/corpus/fuzz_$1_iter_${i}.bak" || true