Skip to content

Commit cfe25a0

Browse files
committed
Fix install failure when using --onion
1 parent bdb4bff commit cfe25a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

usr/bin/dist-installer-cli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2566,7 +2566,7 @@ set_transfer_proxy() {
25662566
proxy_port="${1##*:}"
25672567
proxy_addr="${1%%:*}"
25682568
## Used for transfers that only curl can do.
2569-
curl_transfer_proxy="--proxy socks5h://${1}"
2569+
curl_transfer_proxy=( '--proxy' "socks5h://${1}" )
25702570
## Set transfer proxy per utility.
25712571
case "${transfer_utility}" in
25722572
curl)
@@ -2656,7 +2656,7 @@ get_version() {
26562656
log info "Version Detection: Acquiring guest version using API..."
26572657
log info "Version Detection: API host: ${1}"
26582658
cmd_raw_version=(
2659-
'curl' "${curl_transfer_proxy:-}"
2659+
'curl' "${curl_transfer_proxy[@]}"
26602660
"$(get_proxy_cred version)" "${curl_opt_ssl[@]}"
26612661
'--max-time' "${transfer_max_time_small_file}"
26622662
'--max-filesize' "${transfer_size_small_file}"

usr/share/usability-misc/dist-installer-cli-standalone

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3244,7 +3244,7 @@ set_transfer_proxy() {
32443244
proxy_port="${1##*:}"
32453245
proxy_addr="${1%%:*}"
32463246
## Used for transfers that only curl can do.
3247-
curl_transfer_proxy="--proxy socks5h://${1}"
3247+
curl_transfer_proxy=( '--proxy' "socks5h://${1}" )
32483248
## Set transfer proxy per utility.
32493249
case "${transfer_utility}" in
32503250
curl)
@@ -3334,7 +3334,7 @@ get_version() {
33343334
log info "Version Detection: Acquiring guest version using API..."
33353335
log info "Version Detection: API host: ${1}"
33363336
cmd_raw_version=(
3337-
'curl' "${curl_transfer_proxy:-}"
3337+
'curl' "${curl_transfer_proxy[@]}"
33383338
"$(get_proxy_cred version)" "${curl_opt_ssl[@]}"
33393339
'--max-time' "${transfer_max_time_small_file}"
33403340
'--max-filesize' "${transfer_size_small_file}"

0 commit comments

Comments
 (0)