From dbcc449b14ff2c0a8c4a8a10a5b33bbf6d70fd59 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Wed, 12 Jul 2023 23:21:00 +0100 Subject: [PATCH] shims/mac/super/make: use standard exec routines --- Library/Homebrew/shims/mac/super/make | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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" "$@"