This commit is contained in:
Valeria Fadeeva 2023-06-13 11:03:34 +05:00
parent 0c3fddbf3a
commit 9ab7534997
2 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/target
*.lock

View File

@ -11,6 +11,7 @@ use tokio::process::Command;
use std::env;
use std::process::Stdio;
use std::path::Path;
async fn gui(reader: &mut io::Lines<BufReader<tokio::process::ChildStdout>>) -> io::Result<()> {
@ -73,7 +74,10 @@ async fn get_lines(reader: &mut io::Lines<BufReader<tokio::process::ChildStdout>
async fn run_process() -> io::Lines<BufReader<tokio::process::ChildStdout>>{
dotenv().ok();
// dotenv().ok();
let env_path = Path::new("/etc/arch-linux-updater/.env");
dotenv::from_path(env_path).unwrap();
let cmd_line = env::var("RUN").unwrap();