From a87f1f997cdab6a8cc4025a99f4d4a0491aa2a6e Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Wed, 16 Nov 2022 13:11:38 -0800 Subject: [PATCH] Fixup lack of default param (#55) --- nix-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix-install.sh b/nix-install.sh index 53527b4..b0e7892 100755 --- a/nix-install.sh +++ b/nix-install.sh @@ -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)