forked from ungleich-public/cdist
		
	explorer os_version supports macosx
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								02da74e437
							
						
					
				
			
			
				commit
				
					
						b474960774
					
				
			
		
					 1 changed files with 5 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -23,7 +23,11 @@
 | 
			
		|||
#
 | 
			
		||||
 | 
			
		||||
case "$($__explorer/os)" in
 | 
			
		||||
   openbsd)
 | 
			
		||||
   archlinux)
 | 
			
		||||
      # empty, but well...
 | 
			
		||||
      cat /etc/arch-release
 | 
			
		||||
   ;;
 | 
			
		||||
   macosx|openbsd)
 | 
			
		||||
      uname -r
 | 
			
		||||
   ;;
 | 
			
		||||
esac
 | 
			
		||||
| 
						 | 
				
			
			@ -36,11 +40,6 @@ if grep -q ^DISTRIB_ID=Ubuntu /etc/lsb-release 2>/dev/null; then
 | 
			
		|||
   exit 0
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -f /etc/arch-release ]; then
 | 
			
		||||
   echo archlinux
 | 
			
		||||
   exit 0
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -f /etc/debian_version ]; then
 | 
			
		||||
   echo debian
 | 
			
		||||
   exit 0
 | 
			
		||||
| 
						 | 
				
			
			@ -71,10 +70,6 @@ uname_s="$(uname -s)"
 | 
			
		|||
 | 
			
		||||
# Assume there is no tr on the client -> do lower case ourselves
 | 
			
		||||
case "$uname_s" in
 | 
			
		||||
   Darwin)
 | 
			
		||||
      echo macosx
 | 
			
		||||
      exit 0
 | 
			
		||||
   ;;
 | 
			
		||||
   NetBSD)
 | 
			
		||||
      echo netbsd
 | 
			
		||||
      exit 0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue