Skip to content

Commit 1ce56d4

Browse files
AnkushKoJustInCache
authored andcommitted
fix: skip Homebrew prompt on FreeBSD and other non-Linux/macOS platforms
Closes #68893 The needsBrewPrompt guard used `process.platform !== "win32"`, which incorrectly shows the Homebrew install suggestion on FreeBSD and any other non-Windows unix platform where Homebrew is not supported. Homebrew officially supports only macOS (darwin) and Linux, so the check is tightened to an explicit allowlist of those two platforms. Made-with: Cursor
1 parent 042c117 commit 1ce56d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/commands/onboard-skills.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export async function setupSkills(
109109
.filter((item): item is (typeof installable)[number] => Boolean(item));
110110

111111
const needsBrewPrompt =
112-
process.platform !== "win32" &&
112+
(process.platform === "darwin" || process.platform === "linux") &&
113113
selectedSkills.some((skill) => skill.install.some((option) => option.kind === "brew")) &&
114114
!(await detectBinary("brew"));
115115

0 commit comments

Comments
 (0)