make_vars #3

Merged
statzitz merged 3 commits from make_vars into main 2024-04-05 23:19:32 +02:00
Showing only changes of commit a66357a179 - Show all commits

View file

@ -7,6 +7,18 @@ use std::env;
fn main() {
let args: Vec<String> = env::args().collect();
// def env variables.
let svdir_env = env::var("SVDIR");
//let svwait_env = env::var("SVWAIT");
let svdir_var = match svdir_env {
Ok(var) => var,
Err(..) => "/run/runit/service".to_string(),
};
dbg!(svdir_var);
// args
let arg_parser: Vec<String> = parser::parse_args(args);