mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-10-30 00:45:49 +08:00
[New] nvm install: Print the version that is being installed
This commit is contained in:
committed by
Jordan Harband
parent
f7763c8ba9
commit
9c92b5a4ea
@@ -22,6 +22,7 @@ fail() {
|
||||
OUTPUT="$(NVM_INSTALL_THIRD_PARTY_HOOK=succeed nvm install "${VERSION}")"
|
||||
USE_OUTPUT="$(nvm use "${VERSION}")"
|
||||
EXPECTED_OUTPUT="${VERSION} node std binary ${VERSION_PATH}
|
||||
Downloading and installing node ${VERSION}...
|
||||
${USE_OUTPUT}
|
||||
${USE_OUTPUT}" # double use output is from the normal install in succeed()
|
||||
|
||||
@@ -32,6 +33,7 @@ ${USE_OUTPUT}" # double use output is from the normal install in succeed()
|
||||
OUTPUT="$(NVM_INSTALL_THIRD_PARTY_HOOK=fail nvm install "${VERSION}" || echo 'failed')"
|
||||
USE_OUTPUT="$(nvm use "${VERSION}")"
|
||||
EXPECTED_OUTPUT="${VERSION} node std binary ${VERSION_PATH}
|
||||
Downloading and installing node ${VERSION}...
|
||||
${USE_OUTPUT}
|
||||
failed"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user