| 
									
										
										
										
											2021-09-04 19:42:21 +01:00
										 |  |  | #!/bin/bash | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Set SDKROOT to ensure it matches Homebrew's choice of SDK. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # HOMEBREW_LIBRARY is set by bin/brew | 
					
						
							|  |  |  | # HOMEBREW_SDKROOT is set by extend/ENV/super.rb | 
					
						
							|  |  |  | # shellcheck disable=SC2154 | 
					
						
							|  |  |  | source "${HOMEBREW_LIBRARY}/Homebrew/shims/utils.sh" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-09-13 20:32:20 +08:00
										 |  |  | if [[ -z "${SDKROOT}" && -n "${HOMEBREW_SDKROOT}" ]] | 
					
						
							|  |  |  | then | 
					
						
							|  |  |  |   export SDKROOT="${HOMEBREW_SDKROOT}" | 
					
						
							| 
									
										
										
										
											2021-09-04 19:42:21 +01:00
										 |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-09-15 03:27:05 +01:00
										 |  |  | try_exec_non_system "${SHIM_FILE}" "$@" | 
					
						
							|  |  |  | safe_exec "/usr/bin/${SHIM_FILE}" "$@" |