mirror of
https://github.com/dockur/windows.git
synced 2026-08-03 12:37:20 +01:00
fix: Verify log file creation (#1918)
This commit is contained in:
+5
-2
@@ -46,7 +46,7 @@ curlRequest() {
|
|||||||
local log reason
|
local log reason
|
||||||
local rc=0 response=""
|
local rc=0 response=""
|
||||||
|
|
||||||
if ! log=$(mktemp); then
|
if ! log=$(mktemp -p "$QEMU_DIR"); then
|
||||||
error "Failed to create a temporary curl log."
|
error "Failed to create a temporary curl log."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@@ -584,7 +584,10 @@ getESD() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
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 \
|
LC_ALL=C wget "$catalog" -O "$dir/$file" --no-verbose --timeout=30 \
|
||||||
|
|||||||
Reference in New Issue
Block a user