Skip to content

Commit a515fec

Browse files
committed
Fix update --dry-run: skip version check so dry-run output is shown
check_already_latest() exits early before printing dry-run info when the running version matches the latest release. Skip this check in dry-run mode so the user sees what would happen.
1 parent 4517411 commit a515fec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cli/cli.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3395,8 +3395,8 @@ int cbm_cmd_update(int argc, char **argv) {
33953395

33963396
printf("codebase-memory-mcp update (current: %s)\n\n", CBM_VERSION);
33973397

3398-
/* Version check — skip download if already on latest. */
3399-
if (!force && check_already_latest()) {
3398+
/* Version check — skip download if already on latest (not in dry-run). */
3399+
if (!force && !dry_run && check_already_latest()) {
34003400
return 0;
34013401
}
34023402

0 commit comments

Comments
 (0)