mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Fix some syntax issues
This commit is contained in:
		
							
								
								
									
										4
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -60,7 +60,7 @@ nvm_version() | |||||||
|     fi |     fi | ||||||
|     if [ ! "$VERSION" ]; then |     if [ ! "$VERSION" ]; then | ||||||
|         echo "N/A" |         echo "N/A" | ||||||
|         return -1 |         return 13 | ||||||
|     elif [ -e "$NVM_DIR/$VERSION" ]; then |     elif [ -e "$NVM_DIR/$VERSION" ]; then | ||||||
|         (cd $NVM_DIR; ls -dG "$VERSION") |         (cd $NVM_DIR; ls -dG "$VERSION") | ||||||
|     else |     else | ||||||
| @@ -101,7 +101,7 @@ nvm() | |||||||
|     "install" ) |     "install" ) | ||||||
|       if [ $# -ne 2 ]; then |       if [ $# -ne 2 ]; then | ||||||
|         nvm help |         nvm help | ||||||
|         return; |         return | ||||||
|       fi |       fi | ||||||
|       [ "$NOCURL" ] && curl && return |       [ "$NOCURL" ] && curl && return | ||||||
|       VERSION=`nvm_version $2` |       VERSION=`nvm_version $2` | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user