[Improvement] Use `nvm_sanitize_path` in `nvm_check_file_permissions`.

Jordan Harband 2016-05-05 23:52:51 -07:00
parent d1962c6742
commit f49eb61f8e
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -1964,7 +1964,7 @@ nvm() {
nvm_err 'Cannot uninstall, incorrect permissions on installation folder.' 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 '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
nvm_err " chown -R $(whoami) \"$VERSION_PATH\"" nvm_err " chown -R $(whoami) \"$(nvm_sanitize_path "$VERSION_PATH")\""
return 1 return 1
fi fi