From 473dd86f48f54897fe8627868407343cc6c9384c Mon Sep 17 00:00:00 2001 From: Logan Smyth Date: Wed, 23 Oct 2013 22:14:02 -0700 Subject: [PATCH 1/2] Properly remove the tar file. --- nvm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvm.sh b/nvm.sh index e4ce9f8..ad98e0d 100755 --- a/nvm.sh +++ b/nvm.sh @@ -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 "$tmptarball" && \ + mv "$tmpdir" "$NVM_DIR/$VERSION" ) then nvm use $VERSION From 7862182d6f86541619405254297074e9eb5af5df Mon Sep 17 00:00:00 2001 From: Logan Smyth Date: Thu, 24 Oct 2013 20:09:33 -0700 Subject: [PATCH 2/2] Add -f --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index ad98e0d..fb87879 100755 --- a/nvm.sh +++ b/nvm.sh @@ -262,7 +262,7 @@ 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 && \ - rm "$tmptarball" && \ + rm -f "$tmptarball" && \ mv "$tmpdir" "$NVM_DIR/$VERSION" ) then