Make `nvm cache clear` message less ambiguous
parent
b546436113
commit
fc30e0ade4
6
nvm.sh
6
nvm.sh
|
@ -2363,9 +2363,9 @@ nvm() {
|
||||||
local DIR
|
local DIR
|
||||||
DIR="$(nvm_cache_dir)"
|
DIR="$(nvm_cache_dir)"
|
||||||
if command rm -rf "${DIR}" && command mkdir -p "${DIR}"; then
|
if command rm -rf "${DIR}" && command mkdir -p "${DIR}"; then
|
||||||
nvm_echo 'Cache cleared.'
|
nvm_echo 'nvm cache cleared.'
|
||||||
else
|
else
|
||||||
nvm_err "Unable to clear cache: ${DIR}"
|
nvm_err "Unable to clear nvm cache: ${DIR}"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
@ -3346,7 +3346,7 @@ nvm() {
|
||||||
;;
|
;;
|
||||||
"clear-cache" )
|
"clear-cache" )
|
||||||
command rm -f "$NVM_DIR/v*" "$(nvm_version_dir)" 2>/dev/null
|
command rm -f "$NVM_DIR/v*" "$(nvm_version_dir)" 2>/dev/null
|
||||||
nvm_echo 'Cache cleared.'
|
nvm_echo 'nvm cache cleared.'
|
||||||
;;
|
;;
|
||||||
"version" )
|
"version" )
|
||||||
nvm_version "${1}"
|
nvm_version "${1}"
|
||||||
|
|
Loading…
Reference in New Issue