From 8d1088f9479d931787b342c5289c53ecbacaec47 Mon Sep 17 00:00:00 2001 From: Andrew Schott Date: Sun, 19 Jan 2025 13:38:12 -0600 Subject: [PATCH 1/3] Fixed typo in firmware function --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9400462..9da1aae 100644 --- a/src/main.rs +++ b/src/main.rs @@ -181,14 +181,14 @@ 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") From fafbddf1d301b7749a3493e0f87cbe8a81338a9f Mon Sep 17 00:00:00 2001 From: Andrew Schott Date: Sun, 19 Jan 2025 13:43:39 -0600 Subject: [PATCH 2/3] Fixed semantic error with regards to the used flags and binray name in firmware function --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 9da1aae..bfec7fb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -191,7 +191,7 @@ fn update_firmware() { 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(); From 9d9fd9bcd1d00b87e1d97595b4ca319a4e354015 Mon Sep 17 00:00:00 2001 From: Andrew Schott Date: Thu, 22 May 2025 11:52:24 -0500 Subject: [PATCH 3/3] Fixed formatting error in README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.