fix: sync doctor-prompter.ts with main
This commit is contained in:
@@ -43,6 +43,7 @@ export function createDoctorPrompter(params: {
|
||||
|
||||
const canPrompt = isTty && !yes && !nonInteractive;
|
||||
const confirmDefault = async (p: Parameters<typeof confirm>[0]) => {
|
||||
if (nonInteractive) return false;
|
||||
if (shouldRepair) return true;
|
||||
if (!canPrompt) return Boolean(p.initialValue ?? false);
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user