cli: add SHELL environment variable to "rad debug" output
Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
parent
660236225e
commit
0d00528d48
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue