mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Consistently returning exit code 1 when version is not installed yet.
This commit is contained in:
		
							
								
								
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -543,7 +543,7 @@ nvm() { | ||||
|  | ||||
|       if [ ! -d "$NVM_DIR/$VERSION" ]; then | ||||
|         echo "$VERSION version is not installed yet" >&2 | ||||
|         return; | ||||
|         return 1 | ||||
|       fi | ||||
|       RUN_NODE_PATH=`nvm_strip_path "$NODE_PATH" "/lib/node_modules"` | ||||
|       RUN_NODE_PATH=`nvm_prepend_path "$NODE_PATH" "$NVM_DIR/$VERSION/lib/node_modules"` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user