Skip to content

Commit 7214cf3

Browse files
committed
fix: prefer home linuxbrew paths
1 parent b57d36f commit 7214cf3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/infra/brew.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ export function resolveBrewPathDirs(opts?: {
3131
}
3232

3333
// Linuxbrew defaults.
34+
dirs.push(path.join(homeDir, ".linuxbrew", "bin"));
35+
dirs.push(path.join(homeDir, ".linuxbrew", "sbin"));
3436
dirs.push(
3537
"/home/linuxbrew/.linuxbrew/bin",
3638
"/home/linuxbrew/.linuxbrew/sbin",
3739
);
38-
dirs.push(path.join(homeDir, ".linuxbrew", "bin"));
39-
dirs.push(path.join(homeDir, ".linuxbrew", "sbin"));
4040

4141
// macOS defaults (also used by some Linux setups).
4242
dirs.push("/opt/homebrew/bin", "/usr/local/bin");
@@ -60,8 +60,8 @@ export function resolveBrewExecutable(opts?: {
6060
if (prefix) candidates.push(path.join(prefix, "bin", "brew"));
6161

6262
// Linuxbrew defaults.
63-
candidates.push("/home/linuxbrew/.linuxbrew/bin/brew");
6463
candidates.push(path.join(homeDir, ".linuxbrew", "bin", "brew"));
64+
candidates.push("/home/linuxbrew/.linuxbrew/bin/brew");
6565

6666
// macOS defaults.
6767
candidates.push("/opt/homebrew/bin/brew", "/usr/local/bin/brew");

0 commit comments

Comments
 (0)