Merge pull request #62 from welwood08/patch-1
uninstall should delete the extracted source files from the src directorymaster
commit
087ce15ccd
5
nvm.sh
5
nvm.sh
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue