mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 18:25:52 +08:00 
			
		
		
		
	Properly remove the tar file.
This commit is contained in:
		
							
								
								
									
										4
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user