uninstall should delete the extracted source files from the src directory, not nvm root

master
Will 2011-09-04 14:27:04 +02:00
parent d6ef0c47a5
commit 92703939ee
1 changed files with 2 additions and 3 deletions

5
nvm.sh
View File

@ -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"