mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 21:40:43 +00:00
refactor: simplify cli conversions
This commit is contained in:
@@ -680,7 +680,7 @@ async function maybeRestartService(params: {
|
||||
process.env.OPENCLAW_UPDATE_IN_PROGRESS = "1";
|
||||
try {
|
||||
const interactiveDoctor =
|
||||
Boolean(process.stdin.isTTY) && !params.opts.json && params.opts.yes !== true;
|
||||
process.stdin.isTTY && !params.opts.json && params.opts.yes !== true;
|
||||
await doctorCommand(defaultRuntime, {
|
||||
nonInteractive: !interactiveDoctor,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user