Move the custom commands before the final stage

This commit is contained in:
Roey Darwish Dror
2018-06-11 08:38:29 +03:00
parent 00c0c0b0c1
commit adb775cd9a

View File

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