From 51ab1649fbc3653be8f3a1b7019da0ebbdacf582 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Thu, 11 Nov 2021 16:21:35 +0800 Subject: [PATCH] Install Portable Ruby on native ARM installs The previous commit only prevented the installation of an Intel Portable Ruby into `/opt/homebrew` prefix. Let's actually install an ARM64 Portable Ruby there too. --- Library/Homebrew/cmd/vendor-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/vendor-install.sh b/Library/Homebrew/cmd/vendor-install.sh index 761b339e71..0a68993b48 100644 --- a/Library/Homebrew/cmd/vendor-install.sh +++ b/Library/Homebrew/cmd/vendor-install.sh @@ -23,7 +23,7 @@ then then ruby_FILENAME="portable-ruby-2.6.8.yosemite.bottle.tar.gz" ruby_SHA="0cb1cc7af109437fe0e020c9f3b7b95c3c709b140bde9f991ad2c1433496dd42" - elif [[ "${HOMEBREW_PROCESSOR}" == "arm64" ]] + elif [[ "$(sysctl -n machdep.cpu.brand_string)" == "Apple"* ]] then ruby_FILENAME="portable-ruby-2.6.8.arm64_big_sur.bottle.tar.gz" ruby_SHA="f2d5cab5a4dd49e5b3de780a3cd0a1f61642fea247d1c25aa40cd43f1be290b5"