From f114b897508d8f6e79e80f51e9f7e1d47396546a Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Thu, 11 Nov 2021 17:33:28 +0800 Subject: [PATCH] brew.sh: move comment closer to code it references --- Library/Homebrew/brew.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index b12933979a..3345eb0da6 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -13,11 +13,6 @@ case "${HOMEBREW_SYSTEM}" in Linux) HOMEBREW_LINUX="1" ;; esac -# If we're running under macOS Rosetta 2, and it was requested by setting -# HOMEBREW_CHANGE_ARCH_TO_ARM (for example in CI), then we re-exec this -# same file under the native architecture -# These variables are set from the user environment. -# shellcheck disable=SC2154 if [[ "${HOMEBREW_MACOS}" == "1" ]] && [[ "$(sysctl -n hw.optional.arm64 2>/dev/null)" == "1" ]] then @@ -26,6 +21,11 @@ then HOMEBREW_PHYSICAL_PROCESSOR="arm64" HOMEBREW_ROSETTA="$(sysctl -n sysctl.proc_translated)" + # If we're running under macOS Rosetta 2, and it was requested by setting + # HOMEBREW_CHANGE_ARCH_TO_ARM (for example in CI), then we re-exec this + # same file under the native architecture + # These variables are set from the user environment. + # shellcheck disable=SC2154 if [[ "${HOMEBREW_CHANGE_ARCH_TO_ARM}" == "1" ]] && [[ "${HOMEBREW_ROSETTA}" == "1" ]] then