Pre-update commands (fix #25)

This commit is contained in:
Roey Darwish Dror
2018-06-20 20:26:08 +03:00
parent ca12f8e513
commit 2ee068f4fb
3 changed files with 24 additions and 2 deletions

View File

@@ -71,6 +71,13 @@ fn run() -> Result<(), Error> {
None
};
if let Some(commands) = config.pre_commands() {
for (name, command) in commands {
terminal.print_separator(name);
run_custom_command(&command)?;
}
}
if cfg!(target_os = "linux") {
terminal.print_separator("System update");
match linux::Distribution::detect() {