mirror of
				https://github.com/lukechilds/zsh-nvm.git
				synced 2025-10-30 14:46:28 +08:00 
			
		
		
		
	Get latest release tag
This commit is contained in:
		
							parent
							
								
									3080993da0
								
							
						
					
					
						commit
						dde14339e7
					
				| @ -9,3 +9,9 @@ _zsh_nvm_get() { | ||||
|     wget --quiet --output-document - "$1" | ||||
|   fi | ||||
| } | ||||
| 
 | ||||
| _zsh_nvm_latest_release_tag() { | ||||
|   _zsh_nvm_get "https://api.github.com/repos/creationix/nvm/releases/latest" |  # Get latest release from GitHub api | ||||
|     grep '"tag_name":' |                                                        # Get tag line | ||||
|     sed -E 's/.*"([^"]+)".*/\1/'                                                # Pluck JSON value | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Luke Childs
						Luke Childs