From 9d59463ded5b435a8b7963d55dc2d178052b3e09 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 10 Jul 2022 17:35:45 +0200 Subject: [PATCH] Add GHCUP_CURL_OPTS to bootstrap script --- scripts/bootstrap/bootstrap-haskell | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bootstrap/bootstrap-haskell b/scripts/bootstrap/bootstrap-haskell index 41d9f44..f774bda 100755 --- a/scripts/bootstrap/bootstrap-haskell +++ b/scripts/bootstrap/bootstrap-haskell @@ -322,11 +322,11 @@ download_ghcup() { esac case "${plat}" in MSYS*|MINGW*) - edo curl -Lf "${_url}" > "${GHCUP_BIN}"/ghcup.exe + edo curl -Lf ${GHCUP_CURL_OPTS} "${_url}" > "${GHCUP_BIN}"/ghcup.exe edo chmod +x "${GHCUP_BIN}"/ghcup.exe ;; *) - edo curl -Lf "${_url}" > "${GHCUP_BIN}"/ghcup + edo curl -Lf ${GHCUP_CURL_OPTS} "${_url}" > "${GHCUP_BIN}"/ghcup edo chmod +x "${GHCUP_BIN}"/ghcup ;; esac