We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c16663e commit fdd3a72Copy full SHA for fdd3a72
src/utils/update-check.ts
@@ -106,15 +106,13 @@ function isHomebrewInstall(): boolean {
106
* Returns the platform-appropriate shell command for updating the CLI.
107
*/
108
export function getUpdateCommand(): string {
109
- if (isHomebrewInstall()) {
110
- return 'brew upgrade tigris';
111
- }
112
-
113
const isBinary =
114
(globalThis as { __TIGRIS_BINARY?: boolean }).__TIGRIS_BINARY === true;
115
116
if (!isBinary) {
117
return 'npm install -g @tigrisdata/cli';
+ } else if (isHomebrewInstall()) {
+ return 'brew upgrade tigris';
118
} else if (process.platform === 'win32') {
119
return 'irm https://github.com/tigrisdata/cli/releases/latest/download/install.ps1 | iex';
120
} else {
0 commit comments