1
0
mirror of https://github.com/dockur/windows.git synced 2026-07-27 21:42:36 +07:00

fix: Verify log file creation (#1918)

This commit is contained in:
Kroese
2026-07-21 11:27:58 +02:00
committed by GitHub
parent c60aff232f
commit f193dac580
+5 -2
View File
@@ -46,7 +46,7 @@ curlRequest() {
local log reason
local rc=0 response=""
if ! log=$(mktemp); then
if ! log=$(mktemp -p "$QEMU_DIR"); then
error "Failed to create a temporary curl log."
return 1
fi
@@ -584,7 +584,10 @@ getESD() {
return 1
fi
log=$(mktemp)
if ! log=$(mktemp -p "$QEMU_DIR"); then
error "Failed to create a temporary wget log."
return 1
fi
{
LC_ALL=C wget "$catalog" -O "$dir/$file" --no-verbose --timeout=30 \