mirror of
				https://github.com/vmstan/gravity-sync.git
				synced 2025-10-31 00:47:01 -04:00 
			
		
		
		
	2>/dev/null
This commit is contained in:
		
							parent
							
								
									7ac49933b4
								
							
						
					
					
						commit
						4aaeda32f4
					
				| @ -624,15 +624,15 @@ function detect_sshkeygen { | |||||||
| 
 | 
 | ||||||
| ## Detect Package Manager | ## Detect Package Manager | ||||||
| function distro_check {  | function distro_check {  | ||||||
| 	if hash apt-get | 	if hash apt-get 2>/dev/null | ||||||
| 	then | 	then | ||||||
| 		PKG_INSTALL="sudo apt-get --yes --no-install-recommends --quiet install" | 		PKG_INSTALL="sudo apt-get --yes --no-install-recommends --quiet install" | ||||||
| 	elif hash rpm | 	elif hash rpm 2>/dev/null | ||||||
| 	then | 	then | ||||||
| 		if hash dnf | 		if hash dnf 2>/dev/null | ||||||
| 		then | 		then | ||||||
| 			PKG_MANAGER="dnf" | 			PKG_MANAGER="dnf" | ||||||
| 		elif hash yum | 		elif hash yum 2>/dev/null | ||||||
| 		then | 		then | ||||||
| 			PKG_MANAGER="yum" | 			PKG_MANAGER="yum" | ||||||
| 		else | 		else | ||||||
| @ -653,7 +653,7 @@ function detect_ssh { | |||||||
| 	MESSAGE="Checking for SSH Client on $HOSTNAME" | 	MESSAGE="Checking for SSH Client on $HOSTNAME" | ||||||
| 	echo_stat | 	echo_stat | ||||||
| 
 | 
 | ||||||
| 	if hash ssh | 	if hash ssh 2>/dev/null | ||||||
| 	then | 	then | ||||||
| 		echo_good | 		echo_good | ||||||
| 	else | 	else | ||||||
| @ -672,7 +672,7 @@ function detect_ssh { | |||||||
| 	MESSAGE="Checking for RSYNC Client on $HOSTNAME" | 	MESSAGE="Checking for RSYNC Client on $HOSTNAME" | ||||||
| 	echo_stat | 	echo_stat | ||||||
| 
 | 
 | ||||||
| 	if hash rsync | 	if hash rsync 2>/dev/null | ||||||
| 	then | 	then | ||||||
| 		echo_good | 		echo_good | ||||||
| 	else | 	else | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user