cli: add SHELL environment variable to "rad debug" output

Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
Lars Wirzenius 2024-05-13 11:55:39 +03:00 committed by cloudhead
parent 660236225e
commit 0d00528d48
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)| { let env = HashMap::from_iter(env::vars().filter_map(|(k, v)| {
if k == "RAD_PASSPHRASE" { if k == "RAD_PASSPHRASE" {
Some((k, "<REDACTED>".into())) Some((k, "<REDACTED>".into()))
} else if k.starts_with("RAD_") || k.starts_with("SSH_") || k == "PATH" { } else if k.starts_with("RAD_") || k.starts_with("SSH_") || k == "PATH" || k == "SHELL" {
Some((k, v)) Some((k, v))
} else { } else {
None None