History

task: Fix `ShellBuilder::redirect_stdin_to_dev_null` constructing invalid commands on windows (#39227)

Release Notes: - Fixed agents not being able to use the terminal tool with powershell

Lukas Wirth committed 1 year ago

Commit 67ebb1f1 parent ace61701 file · +1 −1Browse files

Unified · Split

crates/task/src/shell_builder.rs+1−1
@@ -288,7 +288,7 @@ impl ShellBuilder { · 287 unmodified lines
288 combined_command.push_str(") </dev/null");288 combined_command.push_str(") </dev/null");
289 }289 }
290 ShellKind::PowerShell => {290 ShellKind::PowerShell => {
291 combined_command.insert_str(0, "$null | {");291 combined_command.insert_str(0, "`$null | & {");
292 combined_command.push_str("}");292 combined_command.push_str("}");
293 }293 }
294 ShellKind::Cmd => {294 ShellKind::Cmd => {