# HG changeset patch # User Matt Johnston # Date 1734179259 -28800 # Node ID c87782d4bd467f490f6cef747fa46e1593574640 # Parent 0ef1e51e583f13cf339b537d2519c793950cad3d Make robust for latest.zip being missing Handle newly added targets diff -r 0ef1e51e583f -r c87782d4bd46 fetch.sh --- a/fetch.sh Thu Oct 27 19:09:07 2022 +0800 +++ b/fetch.sh Sat Dec 14 20:27:39 2024 +0800 @@ -12,15 +12,17 @@ rm -rf dl mkdir dl for F in $FUZZERS; do - gsutil cp gs://dropbear-backup.clusterfuzz-external.appspot.com/corpus/libFuzzer/dropbear_$F/latest.zip dl/$F.zip + gsutil cp gs://dropbear-backup.clusterfuzz-external.appspot.com/corpus/libFuzzer/dropbear_$F/latest.zip dl/$F.zip \ + || gsutil cp gs://dropbear-backup.clusterfuzz-external.appspot.com/corpus/libFuzzer/dropbear_$F/public.zip dl/$F.zip done # need to use "xargs -n 200" to avoid "argument list too long" for F in $FUZZERS; do # 40 characters is a hash - those filenames came from a previous corpus # we want to keep manually named files which are handcrafted seeds - echo $F/???????????????????????????????????????? | xargs -n 200 rm || true + (echo $F/???????????????????????????????????????? | xargs -n 200 rm) || true # unzip overwrite, quiet + mkdir -p $F (cd $F; unzip -o -q ../dl/$F.zip) done