diff --git a/src/main.rs b/src/main.rs index 56b39a77..d928b0e7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -195,6 +195,13 @@ fn main() -> Result<(), Error> { run_apm(&apm).report("Atom Package Manager", &mut reports); } + if let Some(commands) = config.commands() { + for (name, command) in commands { + terminal.print_separator(name); + run_custom_command(&command).report(name.as_ref(), &mut reports); + } + } + if cfg!(target_os = "linux") { if let Ok(fwupdmgr) = which("fwupdmgr") { terminal.print_separator("Firmware upgrades"); @@ -214,13 +221,6 @@ fn main() -> Result<(), Error> { upgrade_macos().report("App Store", &mut reports);; } - if let Some(commands) = config.commands() { - for (name, command) in commands { - terminal.print_separator(name); - run_custom_command(&command).report(name.as_ref(), &mut reports); - } - } - if !reports.is_empty() { terminal.print_separator("Summary");