From 92703939ee34bc8bb1179608acb57dcdbd8297a3 Mon Sep 17 00:00:00 2001 From: Will Date: Sun, 4 Sep 2011 14:27:04 +0200 Subject: [PATCH] uninstall should delete the extracted source files from the src directory, not nvm root --- nvm.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nvm.sh b/nvm.sh index cff1d0d..0603b1a 100644 --- a/nvm.sh +++ b/nvm.sh @@ -150,10 +150,9 @@ nvm() fi # Delete all files related to target version. - (cd "$NVM_DIR" && \ - rm -rf "node-$VERSION" 2>/dev/null && \ - mkdir -p "$NVM_DIR/src" && \ + (mkdir -p "$NVM_DIR/src" && \ cd "$NVM_DIR/src" && \ + rm -rf "node-$VERSION" 2>/dev/null && \ rm -f "node-$VERSION.tar.gz" 2>/dev/null && \ rm -rf "$NVM_DIR/$VERSION" 2>/dev/null) echo "Uninstalled node $VERSION"