mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 18:25:52 +08:00 
			
		
		
		
	make ls-remote work with no parameters in linux
This commit is contained in:
		
							
								
								
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -78,6 +78,8 @@ nvm_ls_remote() | |||||||
|         if [ "${PATTERN:0:1}" != "v" ]; then |         if [ "${PATTERN:0:1}" != "v" ]; then | ||||||
|             PATTERN=v$PATTERN |             PATTERN=v$PATTERN | ||||||
|         fi |         fi | ||||||
|  |     else | ||||||
|  |         PATTERN=".*" | ||||||
|     fi |     fi | ||||||
|     VERSIONS=`curl -s http://nodejs.org/dist/ \ |     VERSIONS=`curl -s http://nodejs.org/dist/ \ | ||||||
|             | egrep -o 'v[0-9]+\.[0-9]+\.[0-9]+' \ |             | egrep -o 'v[0-9]+\.[0-9]+\.[0-9]+' \ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user