diff --git a/README.md b/README.md index 71c42d1..4c1ec21 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,9 @@ sudo zypper install rustup -y && rustup toolchain install stable ### **INSTALLATION VIA CARGO** As of right now I have not published anything to crates.io or anything similar. So as of right now you can do a: - cargo install --git https://git.schotty.com/andrew/osupdater.git +``` +cargo install --git https://git.schotty.com/andrew/osupdater.git +``` This will download the repo, compile, and install the binary in __**~/.cargo/bin/**__, so ensure if you use this method you have that path in your __**$PATH**__ environment variable. diff --git a/src/main.rs b/src/main.rs index 791170d..604a0fd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -181,17 +181,17 @@ fn update_firmware() { let path = Path::new(&fwupdmgr_bin); if path.exists(){ - cprintln!("osupdater: Updating firware db"); + cprintln!("osupdater: Updating firmware db"); let mut cmd = Command::new(&sudo_bin) .arg(&fwupdmgr_bin).arg("refresh").arg("-y").arg("--force") .stdout(Stdio::inherit()).stderr(Stdio::inherit()) .spawn().unwrap(); let _output = cmd.wait(); - cprintln!("osupdater: Updating firware"); + cprintln!("osupdater: Updating firmware"); let mut cmd = Command::new(&sudo_bin) - .arg(&fwupdmgr_bin).arg("get-updates").arg("-y") + .arg(&fwupdmgr_bin).arg("update").arg("-y") .stdout(Stdio::inherit()).stderr(Stdio::inherit()) .spawn().unwrap(); let _output = cmd.wait();