mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-30 17:25:51 +08:00 
			
		
		
		
	The v* glob expansions were failing with an error under zsh, just set nullglob/NULL_GLOB and make both bash and zsh happier.
		
			
				
	
	
		
			11 lines
		
	
	
		
			174 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			174 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
 | |
| )
 |