mirror of
				https://github.com/vmstan/gravity-sync.git
				synced 2025-11-03 17:17:03 -05:00 
			
		
		
		
	sudo
This commit is contained in:
		
							parent
							
								
									d7817aa3e4
								
							
						
					
					
						commit
						d71b901e58
					
				@ -871,7 +871,7 @@ function distro_check {
 | 
				
			|||||||
	if hash apt-get 2>/dev/null
 | 
						if hash apt-get 2>/dev/null
 | 
				
			||||||
	then
 | 
						then
 | 
				
			||||||
		PKG_MANAGER="apt-get"
 | 
							PKG_MANAGER="apt-get"
 | 
				
			||||||
		PKG_INSTALL="${PKG_MANAGER} --yes --no-install-recommends install"
 | 
							PKG_INSTALL="sudo ${PKG_MANAGER} --yes --no-install-recommends install"
 | 
				
			||||||
	elif hash rpm 2>/dev/null
 | 
						elif hash rpm 2>/dev/null
 | 
				
			||||||
	then
 | 
						then
 | 
				
			||||||
		if hash dnf 2>/dev/null
 | 
							if hash dnf 2>/dev/null
 | 
				
			||||||
@ -885,7 +885,7 @@ function distro_check {
 | 
				
			|||||||
			echo_info
 | 
								echo_info
 | 
				
			||||||
			exit_nochange
 | 
								exit_nochange
 | 
				
			||||||
		fi
 | 
							fi
 | 
				
			||||||
		PKG_INSTALL="${PKG_MANAGER} install -y"
 | 
							PKG_INSTALL="sudo ${PKG_MANAGER} install -y"
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		MESSAGE="Unable to find OS Package Manager"
 | 
							MESSAGE="Unable to find OS Package Manager"
 | 
				
			||||||
		echo_info
 | 
							echo_info
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user