From 37477359802073d8c807a9662cce43cd17d53378 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 20 Aug 2014 00:50:15 -0700 Subject: [PATCH] Make sure `nvm clear-cache` clears the versions directory as well. --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 9e13892..6e9da50 100644 --- a/nvm.sh +++ b/nvm.sh @@ -782,7 +782,7 @@ nvm() { npm install -g --quiet $INSTALLS ;; "clear-cache" ) - rm -f $NVM_DIR/v* 2>/dev/null + rm -f $NVM_DIR/v* "$(nvm_version_dir)" 2>/dev/null echo "Cache cleared." ;; "version" )