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:
Claudius Kienle 2026-04-14 14:59:47 +02:00
parent e204058578
commit a8970b39cb
1 changed files with 2 additions and 1 deletions

View File

@ -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)