ok so it turns out it's -r not -s
This commit is contained in:
parent
0da9c61362
commit
719d0d10be
|
@ -22,7 +22,7 @@ pub fn get_arch() -> String {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_kernel_ver() -> 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);
|
let ver = String::from_utf8_lossy(&binding.stdout);
|
||||||
|
|
||||||
ver.to_string().trim().to_string()
|
ver.to_string().trim().to_string()
|
||||||
|
|
Loading…
Reference in New Issue