Skip to content

Commit

Permalink
package/Distribution: always require CLT.
Browse files Browse the repository at this point in the history
We always require it in `install.sh` and we need it for all but the
latest version of macOS so this seems a simpler compromise.

Fixes Homebrew#15802
  • Loading branch information
MikeMcQuaid authored and dduugg committed Sep 30, 2023
1 parent 4f2c1a8 commit 3a75808
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package/Distribution.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
</allowed-os-versions>

<script>
// See https://developer.apple.com/documentation/installer_js
function installation_check() {
if (system.files.fileExistsAtPath("/Library/Developer/CommandLineTools/usr/bin/git") ||
system.files.fileExistsAtPath("/Applications/Xcode.app/Contents/Developer/usr/bin/git")) {
if (system.files.fileExistsAtPath("/Library/Developer/CommandLineTools/usr/bin/git")) {
return true;
} else {
my.result.title = "Xcode Command Line Tools (CLT) are missing";
my.result.message = "You must install the Xcode Command Line Tools (CLT) or Xcode before installing Homebrew. Install the CLT by running `xcode-select --install` from a Terminal.";
my.result.title = "Command Line Tools (CLT) are missing";
my.result.message = "You must install the Command Line Tools (CLT) before installing Homebrew by running `xcode-select --install` from a Terminal.";
my.result.type = "Fatal";
return false;
}
Expand Down

0 comments on commit 3a75808

Please sign in to comment.