Skip to content

Commit fdd3a72

Browse files
committed
fix: avoid homebrew detection for npm installs
1 parent c16663e commit fdd3a72

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/utils/update-check.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,13 @@ function isHomebrewInstall(): boolean {
106106
* Returns the platform-appropriate shell command for updating the CLI.
107107
*/
108108
export function getUpdateCommand(): string {
109-
if (isHomebrewInstall()) {
110-
return 'brew upgrade tigris';
111-
}
112-
113109
const isBinary =
114110
(globalThis as { __TIGRIS_BINARY?: boolean }).__TIGRIS_BINARY === true;
115111

116112
if (!isBinary) {
117113
return 'npm install -g @tigrisdata/cli';
114+
} else if (isHomebrewInstall()) {
115+
return 'brew upgrade tigris';
118116
} else if (process.platform === 'win32') {
119117
return 'irm https://github.com/tigrisdata/cli/releases/latest/download/install.ps1 | iex';
120118
} else {

0 commit comments

Comments
 (0)