Compare commits

..

No commits in common. "9d9fd9bcd1d00b87e1d97595b4ca319a4e354015" and "8209d6936fbe7ba1bed779320aff630959d2d683" have entirely different histories.

2 changed files with 4 additions and 6 deletions

View file

@ -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.

View file

@ -181,17 +181,17 @@ fn update_firmware() {
let path = Path::new(&fwupdmgr_bin);
if path.exists(){
cprintln!("<bold><rev>osupdater: Updating firmware db</rev></bold>");
cprintln!("<bold><rev>osupdater: Updating firware db</rev></bold>");
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!("<bold><rev>osupdater: Updating firmware</rev></bold>");
cprintln!("<bold><rev>osupdater: Updating firware</rev></bold>");
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();