Update
This commit is contained in:
parent
0c3fddbf3a
commit
9ab7534997
|
@ -1 +1,2 @@
|
|||
/target
|
||||
*.lock
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue