shims/mac/super/make: use standard exec routines

This commit is contained in:
Bo Anderson 2023-07-12 23:21:00 +01:00
parent 49170ac204
commit dbcc449b14
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

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" "$@"