Skip to content

Commit 39dc565

Browse files
committed
package/Distribution: always require CLT.
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
1 parent 3ced915 commit 39dc565

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package/Distribution.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
</allowed-os-versions>
3232

3333
<script>
34+
// See https://developer.apple.com/documentation/installer_js
3435
function installation_check() {
35-
if (system.files.fileExistsAtPath("/Library/Developer/CommandLineTools/usr/bin/git") ||
36-
system.files.fileExistsAtPath("/Applications/Xcode.app/Contents/Developer/usr/bin/git")) {
36+
if (system.files.fileExistsAtPath("/Library/Developer/CommandLineTools/usr/bin/git")) {
3737
return true;
3838
} else {
39-
my.result.title = "Xcode Command Line Tools (CLT) are missing";
40-
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.";
39+
my.result.title = "Command Line Tools (CLT) are missing";
40+
my.result.message = "You must install the Command Line Tools (CLT) before installing Homebrew by running `xcode-select --install` from a Terminal.";
4141
my.result.type = "Fatal";
4242
return false;
4343
}

0 commit comments

Comments
 (0)