Move the custom commands before the final stage
This commit is contained in:
14
src/main.rs
14
src/main.rs
@@ -195,6 +195,13 @@ fn main() -> Result<(), Error> {
|
|||||||
run_apm(&apm).report("Atom Package Manager", &mut reports);
|
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 cfg!(target_os = "linux") {
|
||||||
if let Ok(fwupdmgr) = which("fwupdmgr") {
|
if let Ok(fwupdmgr) = which("fwupdmgr") {
|
||||||
terminal.print_separator("Firmware upgrades");
|
terminal.print_separator("Firmware upgrades");
|
||||||
@@ -214,13 +221,6 @@ fn main() -> Result<(), Error> {
|
|||||||
upgrade_macos().report("App Store", &mut reports);;
|
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() {
|
if !reports.is_empty() {
|
||||||
terminal.print_separator("Summary");
|
terminal.print_separator("Summary");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user