Use $__explorer to get os type
This commit is contained in:
		
					parent
					
						
							
								005c94556e
							
						
					
				
			
			
				commit
				
					
						a50830dca8
					
				
			
		
					 3 changed files with 3 additions and 6 deletions
				
			
		| 
						 | 
					@ -22,8 +22,7 @@
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
destination="/$__object_id"
 | 
					destination="/$__object_id"
 | 
				
			||||||
# Since $__global isn't available, use uname directly, uname and tr are both part of POSIX
 | 
					os=$("$__explorer/os")
 | 
				
			||||||
os="$(uname -s | tr '[:upper:]' '[:lower:]')"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
case "$os" in
 | 
					case "$os" in
 | 
				
			||||||
   "freebsd")
 | 
					   "freebsd")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,8 +22,7 @@
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
destination="/$__object_id"
 | 
					destination="/$__object_id"
 | 
				
			||||||
# Since $__global isn't available, use uname directly, uname and tr are both part of POSIX
 | 
					os=$("$__explorer/os")
 | 
				
			||||||
os="$(uname -s | tr '[:upper:]' '[:lower:]')"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
case "$os" in
 | 
					case "$os" in
 | 
				
			||||||
   "freebsd")
 | 
					   "freebsd")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,8 +22,7 @@
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
destination="/$__object_id"
 | 
					destination="/$__object_id"
 | 
				
			||||||
# Since $__global isn't available, use uname directly, uname and tr are both part of POSIX
 | 
					os=$("$__explorer/os")
 | 
				
			||||||
os="$(uname -s | tr '[:upper:]' '[:lower:]')"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
case "$os" in
 | 
					case "$os" in
 | 
				
			||||||
   "freebsd")
 | 
					   "freebsd")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue