Add GHCUP_CURL_OPTS to bootstrap script
This commit is contained in:
parent
9a72fa13d5
commit
9d59463ded
@ -322,11 +322,11 @@ download_ghcup() {
|
|||||||
esac
|
esac
|
||||||
case "${plat}" in
|
case "${plat}" in
|
||||||
MSYS*|MINGW*)
|
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 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
|
edo chmod +x "${GHCUP_BIN}"/ghcup
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user