mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Merge pull request #311 from loganfsmyth/remove-tar
Properly remove the tar file.
This commit is contained in:
commit
7ccc2dd5ed
4
nvm.sh
4
nvm.sh
@ -262,8 +262,8 @@ nvm() {
|
|||||||
curl -L -C - --progress-bar $url -o "$tmptarball" && \
|
curl -L -C - --progress-bar $url -o "$tmptarball" && \
|
||||||
nvm_checksum `${shasum} "$tmptarball" | awk '{print $1}'` $sum && \
|
nvm_checksum `${shasum} "$tmptarball" | awk '{print $1}'` $sum && \
|
||||||
tar -xzf "$tmptarball" -C "$tmpdir" --strip-components 1 && \
|
tar -xzf "$tmptarball" -C "$tmpdir" --strip-components 1 && \
|
||||||
mv "$tmpdir" "$NVM_DIR/$VERSION" && \
|
rm -f "$tmptarball" && \
|
||||||
rm -f "$tmptarball"
|
mv "$tmpdir" "$NVM_DIR/$VERSION"
|
||||||
)
|
)
|
||||||
then
|
then
|
||||||
nvm use $VERSION
|
nvm use $VERSION
|
||||||
|
Loading…
Reference in New Issue
Block a user