Support download resuming

This commit is contained in:
Kroese 2024-01-22 01:43:17 +01:00 committed by GitHub
parent d2fa6d9c64
commit 866026ee69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,7 +74,6 @@ html "$MSG"
[ -f "$STORAGE/$BASE" ] && return 0 [ -f "$STORAGE/$BASE" ] && return 0
TMP="$STORAGE/tmp" TMP="$STORAGE/tmp"
rm -rf "$TMP"
mkdir -p "$TMP" mkdir -p "$TMP"
ISO="$TMP/$BASE" ISO="$TMP/$BASE"
@ -311,7 +310,7 @@ info "$MSG" && html "$MSG"
genisoimage -b "$ETFS" -no-emul-boot -c "$CAT" -iso-level 4 -J -l -D -N -joliet-long -relaxed-filenames -quiet -V "$LABEL" -udf \ genisoimage -b "$ETFS" -no-emul-boot -c "$CAT" -iso-level 4 -J -l -D -N -joliet-long -relaxed-filenames -quiet -V "$LABEL" -udf \
-boot-info-table -eltorito-alt-boot -eltorito-boot "$EFISYS" -no-emul-boot -o "$OUT" -allow-limited-size "$DIR" -boot-info-table -eltorito-alt-boot -eltorito-boot "$EFISYS" -no-emul-boot -o "$OUT" -allow-limited-size "$DIR"
[ -n "$CUSTOM" ] && rm -f "$ISO" [ -n "$CUSTOM" ] && rm -f "$STORAGE/$CUSTOM"
mv "$OUT" "$STORAGE/$BASE" mv "$OUT" "$STORAGE/$BASE"
rm -rf "$TMP" rm -rf "$TMP"