Actually invoke uname when getting path

This commit is contained in:
T. R. Bernstein
2024-06-28 02:05:50 +02:00
committed by T. R. Bernstein
parent 582f3773ae
commit e6adb4b6ff

View File

@@ -90,7 +90,8 @@ function ensureLocalBinFolder() {
}
function getHomebrewRepositoryPath() {
if [[ "${uname_machine}" == "arm64" ]]; then
local uname_machine=$(/usr/bin/uname -m)
if [[ ${uname_machine} == "arm64" ]]; then
print -- "/opt/homebrew"
else
print "/usr/local/Homebrew"