continue
fi
if ! wget -O "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3"; then
- rm -f "$bspdir/$M-$blobhash.pk3"
- echo "WARNING: could not download $url$M-$blobhash.pk3, maybe not ready yet"
- return 0
+ if ! curl -o "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3"; then
+ rm -f "$bspdir/$M-$blobhash.pk3"
+ echo "WARNING: could not download $url$M-$blobhash.pk3, maybe not ready yet"
+ return 0
+ fi
fi
if ! unzip -l "$bspdir/$M-$blobhash.pk3"; then
rm -f "$bspdir/$M-$blobhash.pk3"