You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
amethyst/src/upgrade.rs

10 lines
289 B
Rust

use std::process::Command;
pub fn upgrade() {
let errstr = format!("Something happened");
Command::new("pacman")
.arg("-Syu")
.spawn()
//.status() TODO: for some reason cant use both .spawn and .status at the same time, need fix
.expect(&errstr);
}