Merge pull request #1644 from citrusui/patch-1

[Docs] Make `nvm cache clear` message less ambiguous
Jordan Harband 2017-10-28 22:42:14 -07:00 committed by GitHub
commit 9953a52afb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

6
nvm.sh
View File

@ -2363,9 +2363,9 @@ nvm() {
local DIR
DIR="$(nvm_cache_dir)"
if command rm -rf "${DIR}" && command mkdir -p "${DIR}"; then
nvm_echo 'Cache cleared.'
nvm_echo 'nvm cache cleared.'
else
nvm_err "Unable to clear cache: ${DIR}"
nvm_err "Unable to clear nvm cache: ${DIR}"
return 1
fi
;;
@ -3346,7 +3346,7 @@ nvm() {
;;
"clear-cache" )
command rm -f "$NVM_DIR/v*" "$(nvm_version_dir)" 2>/dev/null
nvm_echo 'Cache cleared.'
nvm_echo 'nvm cache cleared.'
;;
"version" )
nvm_version "${1}"