mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
Toolchain: Allow BuildQemu.sh to resume downloads
Use -C option for curl to resume if a partially downloaded file already exists.
This commit is contained in:
parent
f9ec3b986e
commit
ebb35e03be
1 changed files with 3 additions and 2 deletions
|
@ -20,8 +20,9 @@ echo SYSROOT is "$SYSROOT"
|
|||
mkdir -p "$DIR/Tarballs"
|
||||
|
||||
pushd "$DIR/Tarballs"
|
||||
if [ ! -e "$QEMU_VERSION.tar.xz" ]; then
|
||||
curl -O "https://download.qemu.org/$QEMU_VERSION.tar.xz"
|
||||
md5="$(md5sum $QEMU_VERSION.tar.xz | cut -f1 -d' ')"
|
||||
if [ ! -e "$QEMU_VERSION.tar.xz" ] || [ "$md5" != "$QEMU_MD5SUM" ]; then
|
||||
curl -C - -O "https://download.qemu.org/$QEMU_VERSION.tar.xz"
|
||||
else
|
||||
echo "Skipped downloading $QEMU_VERSION"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue