cli: add PATH to env vars in rad-debug

Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
Lars Wirzenius 2024-03-15 11:58:47 +02:00 committed by Alexis Sellier
parent 5fce714ba5
commit 6569449fff
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ fn debug(profile: &Profile) -> anyhow::Result<()> {
let env = HashMap::from_iter(env::vars().filter_map(|(k, v)| {
if k == "RAD_PASSPHRASE" {
Some((k, "<REDACTED>".into()))
} else if k.starts_with("RAD_") || k.starts_with("SSH_") {
} else if k.starts_with("RAD_") || k.starts_with("SSH_") || k == "PATH" {
Some((k, v))
} else {
None