Merge pull request #311 from loganfsmyth/remove-tar

Properly remove the tar file.
master
Jordan Harband 2013-10-24 22:52:18 -07:00
commit 7ccc2dd5ed
1 changed files with 2 additions and 2 deletions

4
nvm.sh
View File

@ -262,8 +262,8 @@ nvm() {
curl -L -C - --progress-bar $url -o "$tmptarball" && \
nvm_checksum `${shasum} "$tmptarball" | awk '{print $1}'` $sum && \
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
nvm use $VERSION