mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	fix(check-config.sh): Check for existence of /etc/os-release before sourcing
Signed-off-by: Ryan Shea <sheabot03@gmail.com>
This commit is contained in:
		
							parent
							
								
									3b02526c1e
								
							
						
					
					
						commit
						2deec80dba
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -121,6 +121,9 @@ check_device() {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
check_distro_userns() {
 | 
			
		||||
	if [ ! -e /etc/os-release ]; then
 | 
			
		||||
		return
 | 
			
		||||
	fi
 | 
			
		||||
	. /etc/os-release 2> /dev/null || /bin/true
 | 
			
		||||
	case "$ID" in
 | 
			
		||||
		centos | rhel)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue