From 5e949ed6389531b80200edb2c864f3c6c66b7c74 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 17 Jan 2024 13:16:53 +0100 Subject: [PATCH] Reset the color after printing GOOD or BAD when linting certs. --- src/commands/keyring/lint.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/keyring/lint.rs b/src/commands/keyring/lint.rs index ea18af84..73556fd5 100644 --- a/src/commands/keyring/lint.rs +++ b/src/commands/keyring/lint.rs @@ -740,6 +740,7 @@ pub fn lint(config: Config, mut args: LintCommand) -> Result<()> { let mut stderr = StandardStream::stderr(ColorChoice::Always); stderr.set_color(ColorSpec::new().set_fg(Some(Color::Red)))?; write!(&mut stderr, "BAD")?; + stderr.reset()?; } else { eprint!("BAD"); } @@ -748,6 +749,7 @@ pub fn lint(config: Config, mut args: LintCommand) -> Result<()> { let mut stderr = StandardStream::stderr(ColorChoice::Always); stderr.set_color(ColorSpec::new().set_fg(Some(Color::Green)))?; write!(&mut stderr, "GOOD")?; + stderr.reset()?; } else { eprint!("GOOD"); }