Reset the color after printing GOOD or BAD when linting certs.

This commit is contained in:
Justus Winter 2024-01-17 13:16:53 +01:00
parent b6893634d5
commit 5e949ed638
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386

View File

@ -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");
}