about summary refs log tree commit diff
path: root/unicorn_mode
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-11-07 11:48:39 +0100
committervan Hauser <vh@thc.org>2019-11-07 11:48:39 +0100
commit499f078c3759a22dd5cfd81d2271969f19b75090 (patch)
tree93c7f76babba25b063d0d84f30932c9063eaae93 /unicorn_mode
parent92669e65ee7bfb588134b29e569858ba91408140 (diff)
downloadafl++-499f078c3759a22dd5cfd81d2271969f19b75090.tar.gz
f*ckin travis
Diffstat (limited to 'unicorn_mode')
-rwxr-xr-xunicorn_mode/build_unicorn_support.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/unicorn_mode/build_unicorn_support.sh b/unicorn_mode/build_unicorn_support.sh
index 3bd404b8..fdbcda62 100755
--- a/unicorn_mode/build_unicorn_support.sh
+++ b/unicorn_mode/build_unicorn_support.sh
@@ -106,7 +106,10 @@ if [ ! "$CKSUM" = "$UNICORN_SHA384" ]; then
 
   echo "[*] Downloading Unicorn v1.0.1 from the web..."
   rm -f "$ARCHIVE"
-  wget -O "$ARCHIVE" -- "$UNICORN_URL" || exit 1
+  OK=
+  while [ -z "$OK" ]; do
+    wget -c -O "$ARCHIVE" -- "$UNICORN_URL" && OK=1
+  done
 
   CKSUM=`sha384sum -- "$ARCHIVE" 2>/dev/null | cut -d' ' -f1`