mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-11-04 05:05:51 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			322 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			322 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
set -ex
 | 
						|
 | 
						|
die () { echo $@ ; exit 1; }
 | 
						|
 | 
						|
. ../../nvm.sh
 | 
						|
 | 
						|
nvm install 0.6.21 || die 'v0.6.21 installation failed'
 | 
						|
[ "_$(node -v)" = "_v0.6.21-pre" ] || die "v0.6.21-pre not installed with v0.6.21, got $(node -v)"
 | 
						|
[ "_$(nvm current)" = "_v0.6.21" ] || die "v0.6.21-pre not reported as v0.6.21, got $(nvm current)"
 | 
						|
 |