Fix notify not available (#257)

This commit is contained in:
Thomas Schönauer
2022-12-15 11:34:18 +00:00
committed by GitHub
parent 4e56bf07f3
commit 81928f55a2

View File

@@ -21,8 +21,9 @@ use which_crate::which;
use crate::command::CommandExt;
use crate::report::StepResult;
#[cfg(target_os = "linux")]
use crate::terminal;
#[cfg(target_os = "linux")]
use crate::utils::which;
lazy_static! {
static ref TERMINAL: Mutex<Terminal> = Mutex::new(Terminal::new());
}
@@ -105,7 +106,7 @@ impl Terminal {
command.args(["-a", "Topgrade", "Topgrade"]);
command.arg(message.as_ref());
if let Err(err) = command.output_checked() {
tracing::error!("{err:?}");
terminal::print_warning("Senfing notification failed with {err:?}");
}
}
}