[readme] Stop removing spaces from nvm_path

It breaks switching version of node through nvm in directories with space somewhere in it's path.
Szymon Dzialowski 2020-06-10 18:28:14 +01:00 committed by Jordan Harband
parent 6575b6b052
commit 2d4e877b61
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
1 changed files with 1 additions and 1 deletions

View File

@ -463,7 +463,7 @@ find-up () {
cdnvm(){
cd "$@";
nvm_path=$(find-up .nvmrc | tr -d '[:space:]')
nvm_path=$(find-up .nvmrc | tr -d '\n')
# If there are no .nvmrc file, use the default nvm version
if [[ ! $nvm_path = *[^[:space:]]* ]]; then