mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-10-30 09:18:59 +08:00
Remove useless trailing newlines
This commit is contained in:
@@ -28,4 +28,3 @@ ${NPM_VERSION_ONE}"
|
||||
OUTPUT="$(nvm exec --silent 1 npm --version | head -1)"
|
||||
EXPECTED_OUTPUT="${NPM_VERSION_ONE}"
|
||||
[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "\`nvm exec --silent\` failed to suppress io.js preamble; expected '$EXPECTED_OUTPUT', got '$OUTPUT'"
|
||||
|
||||
|
||||
@@ -14,4 +14,3 @@ echo "0.10.7" > .nvmrc
|
||||
[ "$(nvm exec npm --version | tail -1)" = "$NPM_VERSION_TEN" ] || die "\`nvm exec\` failed to run with the .nvmrc version"
|
||||
|
||||
[ "$(nvm exec npm --version | head -1)" = "Found '$PWD/.nvmrc' with version <0.10.7>" ] || die "\`nvm exec\` failed to print out the \"found in .nvmrc\" message"
|
||||
|
||||
|
||||
@@ -8,4 +8,3 @@ nvm install --lts
|
||||
if [ -f ".nvmrc" ]; then
|
||||
mv .nvmrc .nvmrc.bak
|
||||
fi
|
||||
|
||||
|
||||
@@ -11,4 +11,3 @@ rm .nvmrc
|
||||
if [ -f ".nvmrc.bak" ]; then
|
||||
mv .nvmrc.bak .nvmrc
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user