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.
This commit is contained in:
Martin Vogel
2026-04-06 17:34:35 +02:00
parent 4517411fdd
commit a515fec7bd
+2 -2
View File
@@ -3395,8 +3395,8 @@ int cbm_cmd_update(int argc, char **argv) {
printf("codebase-memory-mcp update (current: %s)\n\n", CBM_VERSION);
/* Version check — skip download if already on latest. */
if (!force && check_already_latest()) {
/* Version check — skip download if already on latest (not in dry-run). */
if (!force && !dry_run && check_already_latest()) {
return 0;
}