ok so it turns out it's -r not -s

This commit is contained in:
SadlyNotSappho 2023-03-14 15:21:39 -07:00
parent 0da9c61362
commit 719d0d10be
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ pub fn get_arch() -> String {
}
pub fn get_kernel_ver() -> String {
let binding = std::process::Command::new("uname").arg("-s").output().expect("uname failed");
let binding = std::process::Command::new("uname").arg("-r").output().expect("uname failed");
let ver = String::from_utf8_lossy(&binding.stdout);
ver.to_string().trim().to_string()