Add -k flag

This commit is contained in:
Roey Darwish Dror
2019-06-16 09:09:05 +03:00
parent a834a79f45
commit b6e838bab0
4 changed files with 15 additions and 5 deletions

View File

@@ -131,5 +131,6 @@ pub fn run_sdkman(base_dirs: &BaseDirs, cleanup: bool, run_type: RunType) -> Res
}
pub fn reboot() {
Command::new("sudo").arg("reboot").spawn().ok();
print!("Rebooting...");
Command::new("sudo").arg("reboot").spawn().unwrap().wait().unwrap();
}