util: Fix shell environment fetching failing with nu (#40275)

Release Notes:

- Fixed shell environment fetching failing with nu shell
This commit is contained in:
Lukas Wirth
2025-10-16 10:21:31 +00:00
committed by GitHub
parent c2ace408d9
commit 9948778e96
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -263,7 +263,7 @@ async fn load_shell_environment(
.into_iter()
.collect();
(Some(fake_env), None)
} else if cfg!(target_os = "windows",) {
} else if cfg!(target_os = "windows") {
let (shell, args) = shell.program_and_args();
let envs = match shell_env::capture(shell, args, dir).await {
Ok(envs) => envs,