Skip to content

Commit

Permalink
mac: enhance some util function
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilledheart committed Sep 19, 2024
1 parent 61dfa6c commit a89ca03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mac/utils_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ static bool IsSoftwarePrivatedImpl() {
if (GetCPUType() == CPUType::kIntel)
return IsFile("/usr/local/bin/brew");
#endif
return IsFile("/opt/homebrew/bin/brew");
return IsFile("/opt/homebrew/bin/brew") || IsDirectory("/opt/homebrew/.git");
}

bool IsSoftwarePrivated() {
Expand Down

0 comments on commit a89ca03

Please sign in to comment.