File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export NVM_VERSION="${NVMVERSION:-"latest"}"
1313export NVM_DIR=" ${NVMINSTALLPATH:- " /usr/local/share/nvm" } "
1414export NVM_NODEJS_ORG_MIRROR=" ${NVM_NODEJS_ORG_MIRROR:- https:// nodejs.org/ dist} "
1515NVM_NODEJS_ORG_MIRROR_ESCAPED=" $( printf ' %q' " ${NVM_NODEJS_ORG_MIRROR} " ) "
16+ GITHUB_USERCONTENT_URL=" ${GITHUB_USERCONTENT_MIRROR:- https:// raw.githubusercontent.com} "
1617INSTALL_TOOLS_FOR_NODE_GYP=" ${NODEGYPDEPENDENCIES:- true} "
1718export INSTALL_YARN_USING_APT=" ${INSTALLYARNUSINGAPT:- false} " # only concerns Debian-based systems
1819
@@ -308,9 +309,9 @@ umask 0002
308309# Do not update profile - we'll do this manually
309310export PROFILE=/dev/null
310311export NVM_NODEJS_ORG_MIRROR="${NVM_NODEJS_ORG_MIRROR} "
311- curl -so- "https://raw.githubusercontent.com /nvm-sh/nvm/v${NVM_VERSION} /install.sh" | bash || {
312+ curl -so- "${GITHUB_USERCONTENT_URL} /nvm-sh/nvm/v${NVM_VERSION} /install.sh" | bash || {
312313 PREV_NVM_VERSION=$( curl -s https://api.github.com/repos/nvm-sh/nvm/releases/latest | grep ' "tag_name"' | sed -E ' s/.*"([^"]+)".*/\1/' )
313- curl -so- "https://raw.githubusercontent.com /nvm-sh/nvm/\$ {PREV_NVM_VERSION}/install.sh" | bash
314+ curl -so- "${GITHUB_USERCONTENT_URL} /nvm-sh/nvm/\$ {PREV_NVM_VERSION}/install.sh" | bash
314315 NVM_VERSION="\$ {PREV_NVM_VERSION}"
315316}
316317[ -s "${NVM_DIR} /nvm.sh" ] && source "${NVM_DIR} /nvm.sh"
You can’t perform that action at this time.
0 commit comments