diff --git a/Library/Homebrew/shims/mac/super/make b/Library/Homebrew/shims/mac/super/make index 3c29e70b9c..4ee9aca02a 100755 --- a/Library/Homebrew/shims/mac/super/make +++ b/Library/Homebrew/shims/mac/super/make @@ -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" "$@"