mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Add check for git to install script.
This commit is contained in:
		
				
					committed by
					
						 Dennis Dryden
						Dennis Dryden
					
				
			
			
				
	
			
			
			
						parent
						
							db3035c29b
						
					
				
				
					commit
					34a067647c
				
			| @@ -2,6 +2,12 @@ | ||||
|  | ||||
| NVM_DIR="$HOME/.nvm" | ||||
|  | ||||
| if ! hash git 2>/dev/null; then | ||||
|   echo >&2 "You need to install git." | ||||
|   echo >&2 "Visit http://git-scm.com/downloads" | ||||
|   exit 1 | ||||
| fi | ||||
|  | ||||
| if [ -d "$NVM_DIR" ]; then | ||||
|   echo "=> NVM is already installed in $NVM_DIR, trying to update" | ||||
|   echo -ne "\r=> " | ||||
|   | ||||
		Reference in New Issue
	
	Block a user