[readme] Stop removing spaces from nvm_path
It breaks switching version of node through nvm in directories with space somewhere in it's path.
parent
6575b6b052
commit
2d4e877b61
|
@ -463,7 +463,7 @@ find-up () {
|
||||||
|
|
||||||
cdnvm(){
|
cdnvm(){
|
||||||
cd "$@";
|
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 there are no .nvmrc file, use the default nvm version
|
||||||
if [[ ! $nvm_path = *[^[:space:]]* ]]; then
|
if [[ ! $nvm_path = *[^[:space:]]* ]]; then
|
||||||
|
|
Loading…
Reference in New Issue