mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	install.sh: Ensure that the --quiet option is available before trying to use it.
				
					
				
			Fixes #738, #657.
This commit is contained in:
		| @@ -71,7 +71,12 @@ install_nvm_from_git() { | |||||||
|   fi |   fi | ||||||
|   cd "$NVM_DIR" && command git checkout --quiet $(nvm_latest_version) |   cd "$NVM_DIR" && command git checkout --quiet $(nvm_latest_version) | ||||||
|   if [ ! -z "$(cd "$NVM_DIR" && git show-ref refs/heads/master)" ]; then |   if [ ! -z "$(cd "$NVM_DIR" && git show-ref refs/heads/master)" ]; then | ||||||
|     cd "$NVM_DIR" && command git branch --quiet -D master >/dev/null 2>&1 |     if git branch --quiet 2>/dev/null; then | ||||||
|  |       cd "$NVM_DIR" && command git branch --quiet -D master >/dev/null 2>&1 | ||||||
|  |     else | ||||||
|  |       echo >&2 "Your version of git is out of date. Please update it!" | ||||||
|  |       cd "$NVM_DIR" && command git branch -D master >/dev/null 2>&1 | ||||||
|  |     fi | ||||||
|   fi |   fi | ||||||
|   return |   return | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user