AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
This commit is contained in:
parent
040722c858
commit
ea593cffe5
|
@ -0,0 +1,9 @@
|
||||||
|
use std::fs::read_to_string;
|
||||||
|
|
||||||
|
use dotenv_parser::parse_dotenv;
|
||||||
|
|
||||||
|
pub fn get_os() {
|
||||||
|
let os_release = read_to_string("/etc/os-release").unwrap();
|
||||||
|
let parsed = parse_dotenv(&os_release).unwrap();
|
||||||
|
println!("{}", parsed.get("PRETTY_NAME").unwrap());
|
||||||
|
}
|
Loading…
Reference in New Issue