mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 18:25:52 +08:00 
			
		
		
		
	Saves us ~25% bandwidth while downloading the payload. This only applies to hosts that has the `xz` binary and attempts to use iojs 2.3.2 or newer (this includes nodejs 4.0+ as well). Older targets are unaffected.
		
			
				
	
	
		
			11 lines
		
	
	
		
			187 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			187 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| # Remove temporary files
 | |
| (
 | |
|   cd ../..
 | |
| 
 | |
|   type setopt >/dev/null 2>&1 && setopt NULL_GLOB
 | |
|   type shopt >/dev/null 2>&1 && shopt -s nullglob
 | |
|   rm -fR v* src alias test/test-xz
 | |
| )
 |