diff --git a/Cargo.lock b/Cargo.lock index a304ac7..cbbb173 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1847,7 +1847,7 @@ dependencies = [ [[package]] name = "tiny-encrypt" -version = "1.7.6" +version = "1.7.7" dependencies = [ "aes-gcm-stream", "base64", diff --git a/Cargo.toml b/Cargo.toml index 9b859e1..18c8821 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tiny-encrypt" -version = "1.7.6" +version = "1.7.7" edition = "2021" license = "MIT" description = "A simple and tiny file encrypt tool" diff --git a/src/cmd_execenv.rs b/src/cmd_execenv.rs index 3c1bf04..2dca621 100644 --- a/src/cmd_execenv.rs +++ b/src/cmd_execenv.rs @@ -145,7 +145,9 @@ fn parse_output_to_env(output: &str) -> Vec<(String, String)> { } else { let lines = output.split('\n'); lines.filter(|ln| !ln.trim().is_empty()).for_each(|ln| { - if ln.contains('=') { + if ln.starts_with('#') { + debugging!("Found comment: {}", ln); + } else if ln.contains('=') { let k = ln.chars().take_while(|c| c != &'=').collect::(); let v = ln.chars().skip_while(|c| c != &'=').skip(1).collect::(); env.push((k, v));