mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	[Fix] when not using xz on merged node versions, use z to extract, not x
				
					
				
			This commit is contained in:
		
							
								
								
									
										8
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -1366,12 +1366,12 @@ nvm_install_merged_node_binary() { | ||||
|   local sum | ||||
|   local NODE_PREFIX | ||||
|   local compression | ||||
|   compression="gz" | ||||
|   compression='gz' | ||||
|   local tar_compression_flag | ||||
|   tar_compression_flag="x" | ||||
|   tar_compression_flag='z' | ||||
|   if nvm_supports_xz "${VERSION}"; then | ||||
|     compression="xz" | ||||
|     tar_compression_flag="J" | ||||
|     compression='xz' | ||||
|     tar_compression_flag='J' | ||||
|   fi | ||||
|   NODE_PREFIX="$(nvm_node_prefix)" | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user