Skip to content
Myr

[Fix] `install`: Add missing io.js installation message

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fixes #1988

authored by Peter Dave Hello · committed by Jordan Harband · parent 7e715d5 · Browse files · 2 files+7 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−1 removed

  • tests:+5 added−1 removed
  • other:+2 added−0 removed

2 files+7 added−1 removed

modified:test/installation_iojs/install from binary+5 added-1 removed
7 unmodified lines
8NVM_PREFIXED_TEST_VERSION="iojs-$NVM_TEST_VERSION"910# Remove the stuff we're clobbering.11[ -e "${NVM_DIR}/versions/io.js/${NVM_TEST_VERSION}" ] && rm -R "${NVM_DIR}/versions/io.js/${NVM_TEST_VERSION}"12[ -e "${NVM_DIR}/.cache/bin/${NVM_TEST_VERSION}-linux-x64/" ] && rm -R "${NVM_DIR}/.cache/bin/${NVM_TEST_VERSION}-linux-x64/"1314# Install from binary14nvm install $NVM_PREFIXED_TEST_VERSION || die "install $NVM_PREFIXED_TEST_VERSION failed"15OUTPUT_HEAD="$(2>&1 nvm install --no-progress $NVM_PREFIXED_TEST_VERSION | tac | tail -n 1)" || die "install $NVM_PREFIXED_TEST_VERSION failed"16EXPECTED_OUTPUT_HEAD="Downloading and installing io.js v1.0.0..."1718[ "${OUTPUT_HEAD}" = "${EXPECTED_OUTPUT_HEAD}" ] || die "expected >${EXPECTED_OUTPUT_HEAD}<; got >${OUTPUT_HEAD}<"1920# Check21[ -d "${NVM_DIR}/versions/io.js/${NVM_TEST_VERSION}" ]22nvm run "${NVM_PREFIXED_TEST_VERSION}" --version | grep "${NVM_TEST_VERSION}" || die "'nvm run ${NVM_PREFIXED_TEST_VERSION} --version | grep ${NVM_TEST_VERSION}' failed"
modified:nvm.sh+2 added
1719 unmodified lines
1720 local PROGRESS_BAR1721 local NODE_OR_IOJS1722 if [ "${FLAVOR}" = 'node' ]; then1723 NODE_OR_IOJS="${FLAVOR}"1724 elif [ "${FLAVOR}" = 'iojs' ]; then1725 NODE_OR_IOJS="io.js"1726 fi1727 if [ "${NVM_NO_PROGRESS-}" = "1" ]; then1728 # --silent, --show-error, use short option as @samrocketman mentions the compatibility issue.1729 PROGRESS_BAR="-sS"
1866 unmodified lines