mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-11-04 15:07:13 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			472 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			472 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
die () { echo $@ ; exit 1; }
 | 
						|
 | 
						|
. ../../../nvm.sh
 | 
						|
 | 
						|
[ "$(nvm_version_path foo)" = "$NVM_DIR/foo" ] || die '"nvm_version_path foo" did not return correct location'
 | 
						|
[ "$(nvm_version_path 2>&1)" = "version is required" ] || die '"nvm_version_path" did not error out'
 | 
						|
[ "$(nvm_version_path v0.11.0)" = "$NVM_DIR/v0.11.0" ] || die 'old version has the wrong path'
 | 
						|
[ "$(nvm_version_path v0.12.0)" = "$NVM_DIR/versions/v0.12.0" ] || die 'new version has the wrong path'
 | 
						|
 |