Fixup lack of default param (#55)

This commit is contained in:
Ana Hobden 2022-11-16 13:11:38 -08:00 committed by GitHub
parent d5757e68bd
commit a87f1f997c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -478,7 +478,7 @@ downloader() {
get_ciphersuites_for_curl
_ciphersuites="$RETVAL"
if [ -n "$_ciphersuites" ]; then
if [ -n "$NIX_INSTALL_FORCE_ALLOW_HTTP" ]; then
if [ -n "${NIX_INSTALL_FORCE_ALLOW_HTTP-}" ]; then
_err=$(curl $_retry --silent --show-error --fail --location "$1" --output "$2" 2>&1)
else
_err=$(curl $_retry --proto '=https' --tlsv1.2 --ciphers "$_ciphersuites" --silent --show-error --fail --location "$1" --output "$2" 2>&1)