mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Create alias dir on demand
This commit is contained in:
		
							
								
								
									
										3
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -173,8 +173,9 @@ nvm() | ||||
|       echo "# use 'nvm sync' to update from nodejs.org" | ||||
|     ;; | ||||
|     "alias" ) | ||||
|       mkdir -p $NVM_DIR/alias | ||||
|       if [ $# -le 2 ]; then | ||||
|         (cd $NVM_DIR/alias; for ALIAS in `ls $2* 2>/dev/null`; do | ||||
|         (cd $NVM_DIR/alias && for ALIAS in `ls $2* 2>/dev/null`; do | ||||
|             DEST=`cat $ALIAS` | ||||
|             VERSION=`nvm_version $DEST` | ||||
|             if [ "$DEST" = "$VERSION" ]; then | ||||
|   | ||||
		Reference in New Issue
	
	Block a user