diff --git a/lib/doctor/optional-checks.js b/lib/doctor/optional-checks.js index 0ea25b3..41bae1e 100644 --- a/lib/doctor/optional-checks.js +++ b/lib/doctor/optional-checks.js @@ -44,14 +44,14 @@ export class OptionalAutomationModeCheck { } catch (err) { return doctor.nokOptional(`Cannot run 'automationmodetool': ${err.stderr || err.message}`); } - if (stdout.includes('disabled')) { - return doctor.nokOptional(`Automation Mode is disabled`); + if (stdout.includes('DOES NOT REQUIRE')) { + return doctor.okOptional(`Automation Mode does not require user authentication`); } - return doctor.okOptional(`Automation Mode is enabled`); + return doctor.nokOptional(`Automation Mode requires user authentication`); } async fix() { - return `Run \`automationmodetool enable-automationmode-without-authentication\` to enable Automation Mode`; + return `Run \`automationmodetool enable-automationmode-without-authentication\` to disable Automation Mode authentication`; } hasAutofix() {