Skip to content

Commit d1f6bcf

Browse files
committed
only set new cli if status requirements are met
1 parent 29cbef5 commit d1f6bcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export function createCliStatusTracker(
186186
? "ok"
187187
: "setup_required",
188188
);
189-
cliPath.setValue(newCli?.upToDate ? newCli?.cliPath : undefined);
189+
cliPath.setValue(status.value() === "ok" ? newCli?.cliPath : undefined);
190190
outdated.setValue(
191191
newCli?.upToDate !== undefined ? !newCli.upToDate : undefined,
192192
);

0 commit comments

Comments
 (0)