Merge pull request #62 from welwood08/patch-1

uninstall should delete the extracted source files from the src directory
master
Tim Caswell 2011-09-05 11:01:31 -07:00
commit 087ce15ccd
1 changed files with 2 additions and 3 deletions

5
nvm.sh
View File

@ -150,10 +150,9 @@ nvm()
fi fi
# Delete all files related to target version. # Delete all files related to target version.
(cd "$NVM_DIR" && \ (mkdir -p "$NVM_DIR/src" && \
rm -rf "node-$VERSION" 2>/dev/null && \
mkdir -p "$NVM_DIR/src" && \
cd "$NVM_DIR/src" && \ cd "$NVM_DIR/src" && \
rm -rf "node-$VERSION" 2>/dev/null && \
rm -f "node-$VERSION.tar.gz" 2>/dev/null && \ rm -f "node-$VERSION.tar.gz" 2>/dev/null && \
rm -rf "$NVM_DIR/$VERSION" 2>/dev/null) rm -rf "$NVM_DIR/$VERSION" 2>/dev/null)
echo "Uninstalled node $VERSION" echo "Uninstalled node $VERSION"