Add reboot and shell ability in pause

This commit is contained in:
Roey Darwish Dror
2019-06-13 22:05:18 +03:00
parent 79febd78b5
commit a834a79f45
5 changed files with 46 additions and 8 deletions

View File

@@ -129,3 +129,7 @@ pub fn run_sdkman(base_dirs: &BaseDirs, cleanup: bool, run_type: RunType) -> Res
Ok(())
}
pub fn reboot() {
Command::new("sudo").arg("reboot").spawn().ok();
}