mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Overwritting GREP_OPTIONS on local script
(recommiting to automerge into current master)
This commit is contained in:
		
							
								
								
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -100,6 +100,7 @@ nvm_ls() { | |||||||
| nvm_ls_remote() { | nvm_ls_remote() { | ||||||
|   local PATTERN=$1 |   local PATTERN=$1 | ||||||
|   local VERSIONS |   local VERSIONS | ||||||
|  |   local GREP_OPTIONS='' | ||||||
|   if [ "$PATTERN" ]; then |   if [ "$PATTERN" ]; then | ||||||
|     if echo "${PATTERN}" | \grep -v '^v' ; then |     if echo "${PATTERN}" | \grep -v '^v' ; then | ||||||
|       PATTERN=v$PATTERN |       PATTERN=v$PATTERN | ||||||
| @@ -170,6 +171,7 @@ nvm() { | |||||||
|   local uname="$(uname -a)" |   local uname="$(uname -a)" | ||||||
|   local os= |   local os= | ||||||
|   local arch="$(uname -m)" |   local arch="$(uname -m)" | ||||||
|  |   local GREP_OPTIONS='' | ||||||
|   case "$uname" in |   case "$uname" in | ||||||
|     Linux\ *) os=linux ;; |     Linux\ *) os=linux ;; | ||||||
|     Darwin\ *) os=darwin ;; |     Darwin\ *) os=darwin ;; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user