Cargo upgrade

This commit is contained in:
Roey Darwish Dror
2018-05-31 16:17:22 +03:00
parent 047a2980cb
commit 793d41c2a5

View File

@@ -109,6 +109,16 @@ fn run() -> Result<()> {
}
}
let cargo_upgrade = home_path(".cargo/bin/cargo-install-update");
if cargo_upgrade.exists() {
terminal.print_separator("Cargo");
Command::new(&cargo_upgrade)
.arg("install-update")
.arg("--all")
.spawn()?
.wait()?;
}
if cfg!(target_os = "linux") {
let sudo = which("sudo");