quickget: normalize QUICKGET_INSECURE env var to accept both 1 and true
The previous assignment CURL_INSECURE="${QUICKGET_INSECURE:-false}" meant
QUICKGET_INSECURE=1 set CURL_INSECURE to "1", but the downstream check
only matched "true", so the env var had no effect. Accept both "1" and
"true" by normalizing to "true"/"false" at assignment time.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e204058578
commit
a8970b39cb
3
quickget
3
quickget
|
|
@ -3800,7 +3800,8 @@ QUICKEMU=$(resolve_quickemu)
|
|||
I18NS=()
|
||||
OPERATION=""
|
||||
CHECK_ALL_ARCH="false"
|
||||
CURL_INSECURE="${QUICKGET_INSECURE:-false}"
|
||||
CURL_INSECURE="false"
|
||||
[[ "${QUICKGET_INSECURE:-}" == "1" || "${QUICKGET_INSECURE:-}" == "true" ]] && CURL_INSECURE="true"
|
||||
# Normalised host architecture for foreign arch detection
|
||||
NORMALISED_HOST_ARCH="${ARCH}"
|
||||
CURL=$(command -v curl)
|
||||
|
|
|
|||
Loading…
Reference in New Issue