From f49eb61f8e2ff9c6f12ab4d027b06eba36929bfe Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 5 May 2016 23:52:51 -0700 Subject: [PATCH] [Improvement] Use `nvm_sanitize_path` in `nvm_check_file_permissions`. --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index d741f1c..517356f 100644 --- a/nvm.sh +++ b/nvm.sh @@ -1964,7 +1964,7 @@ nvm() { nvm_err 'Cannot uninstall, incorrect permissions on installation folder.' nvm_err 'This is usually caused by running `npm install -g` as root. Run the following command as root to fix the permissions and then try again.' nvm_err - nvm_err " chown -R $(whoami) \"$VERSION_PATH\"" + nvm_err " chown -R $(whoami) \"$(nvm_sanitize_path "$VERSION_PATH")\"" return 1 fi