Skip to content

Commit 78f513d

Browse files
committed
Fix mv same file error
1 parent b526040 commit 78f513d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

delete_nonreduced_fuzz_inputs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ git clone --depth=1 --no-single-branch https://github.com/bitcoin/bitcoin.git
8383
mkdir --parents "$FUZZ_TARGET_DIR/$ref_sha1"
8484
# Allow timeouts and crashes with "-A", "-T all" to use all available cores
8585
FUZZ=$fuzz_target afl-cmin -T all -A -i "../all_inputs/$fuzz_target" -o "$FUZZ_TARGET_DIR/$ref_sha1" -- ./build_fuzz/bin/fuzz
86-
mv "$FUZZ_TARGET_DIR/$ref_sha1/"* "$FUZZ_TARGET_DIR/"
86+
# use cp instead of mv because mv fails if source and destination is same file
87+
cp "$FUZZ_TARGET_DIR/$ref_sha1/"* "$FUZZ_TARGET_DIR/"
8788
rm -r "$FUZZ_TARGET_DIR/$ref_sha1"
8889
done
8990
done

0 commit comments

Comments
 (0)