Add config file with support for custom commands and git repos, fix #1
This commit is contained in:
committed by
Roey Darwish Dror
parent
13812ec250
commit
bf301f51cd
11
src/steps.rs
11
src/steps.rs
@@ -220,3 +220,14 @@ pub fn upgrade_debian(
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn run_custom_command(command: &str) -> Result<(), failure::Error> {
|
||||
Command::new("sh")
|
||||
.arg("-c")
|
||||
.arg(command)
|
||||
.spawn()?
|
||||
.wait()?
|
||||
.check()?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user