diff --git a/README.md b/README.md index 4c1ec21..71c42d1 100644 --- a/README.md +++ b/README.md @@ -120,9 +120,7 @@ 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 604a0fd..791170d 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 firmware db"); + cprintln!("osupdater: Updating firware 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 firmware"); + cprintln!("osupdater: Updating firware"); let mut cmd = Command::new(&sudo_bin) - .arg(&fwupdmgr_bin).arg("update").arg("-y") + .arg(&fwupdmgr_bin).arg("get-updates").arg("-y") .stdout(Stdio::inherit()).stderr(Stdio::inherit()) .spawn().unwrap(); let _output = cmd.wait();