mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-02 07:53:41 +08:00
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:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user