From 9d650d568ba0cb8f0c6b382658e50461a66675e9 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Fri, 28 Jun 2024 10:49:36 -0700 Subject: [PATCH] test(fuzz): Bug fix: `find` was missing `-type f` --- recursive-fuzz-cmin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recursive-fuzz-cmin.sh b/recursive-fuzz-cmin.sh index 976accc1..1e91c9ef 100755 --- a/recursive-fuzz-cmin.sh +++ b/recursive-fuzz-cmin.sh @@ -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