mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 18:25:52 +08:00 
			
		
		
		
	[Fix] avoid an unbound variable when nounset bash option is set.
				
					
				
			Per https://github.com/creationix/nvm/issues/868#issuecomment-198232952
This commit is contained in:
		
							
								
								
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -92,7 +92,7 @@ if [ -z "${NVM_NODEJS_ORG_MIRROR-}" ]; then | |||||||
|   export NVM_NODEJS_ORG_MIRROR="https://nodejs.org/dist" |   export NVM_NODEJS_ORG_MIRROR="https://nodejs.org/dist" | ||||||
| fi | fi | ||||||
|  |  | ||||||
| if [ -z "$NVM_IOJS_ORG_MIRROR" ]; then | if [ -z "${NVM_IOJS_ORG_MIRROR-}" ]; then | ||||||
|   export NVM_IOJS_ORG_MIRROR="https://iojs.org/dist" |   export NVM_IOJS_ORG_MIRROR="https://iojs.org/dist" | ||||||
| fi | fi | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user