Skip to content

Commit 6abd2fe

Browse files
authored
Merge branch 'main' into fix/code_spell_1139
2 parents fd5fda8 + 2951f04 commit 6abd2fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ curl -so- "https://raw.githubusercontent.com/nvm-sh/nvm/v${NVM_VERSION}/install.
309309
curl -so- "https://raw.githubusercontent.com/nvm-sh/nvm/\${PREV_NVM_VERSION}/install.sh" | bash
310310
NVM_VERSION="\${PREV_NVM_VERSION}"
311311
}
312-
source "${NVM_DIR}/nvm.sh"
312+
[ -s "${NVM_DIR}/nvm.sh" ] && source "${NVM_DIR}/nvm.sh"
313313
if [ "${NODE_VERSION}" != "" ]; then
314314
nvm alias default "${NODE_VERSION}"
315315
fi

0 commit comments

Comments
 (0)