Merge pull request #15672 from Bo98/make-fix

shims/mac/super/make: use standard exec routines
This commit is contained in:
Bo Anderson 2023-07-13 00:06:43 +01:00 committed by GitHub
commit e45c289470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,10 @@
#!/bin/bash
# HOMEBREW_LIBRARY is set by bin/brew
# shellcheck disable=SC2154
source "${HOMEBREW_LIBRARY}/Homebrew/shims/utils.sh"
export HOMEBREW_CCCFG="O${HOMEBREW_CCCFG}"
SHIM_FILE="${0##*/}"
if xcrun --find "${SHIM_FILE}" &>/dev/null
then
exec xcrun "${SHIM_FILE}" "$@"
else
exec xcrun make "$@"
fi
try_exec_non_system "${SHIM_FILE}" "$@"
safe_exec "/usr/bin/make" "$@"