From 2d4e877b61f61f91cb7a9d2acbb1ffd1582bf736 Mon Sep 17 00:00:00 2001 From: Szymon Dzialowski Date: Wed, 10 Jun 2020 18:28:14 +0100 Subject: [PATCH] [readme] Stop removing spaces from nvm_path It breaks switching version of node through nvm in directories with space somewhere in it's path. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ca88148..dcb1b2d 100644 --- a/README.md +++ b/README.md @@ -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