Skip to content

Commit a3bc49a

Browse files
author
User
committed
fix: Remove platform-specific shell from execute_command module (only bash support now)
1 parent 26ff0fc commit a3bc49a

File tree

1 file changed

+0
-7
lines changed
  • src/tools/execute_command

1 file changed

+0
-7
lines changed

src/tools/execute_command/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ use crate::agent::event::AgentCommandStatus;
1313

1414
pub mod tools;
1515

16-
#[cfg(unix)]
1716
const SHELL: &str = "bash";
18-
#[cfg(windows)]
19-
const SHELL: &str = "cmd";
2017

2118
#[derive(Default)]
2219
pub struct ProcessRegistry {
@@ -167,12 +164,8 @@ impl ProcessRegistry {
167164
.stdout(std::process::Stdio::piped())
168165
.stderr(std::process::Stdio::piped());
169166

170-
#[cfg(unix)]
171167
cmd.arg("-c");
172168

173-
#[cfg(windows)]
174-
cmd.arg("/C");
175-
176169
cmd.arg(command);
177170
});
178171
child.wrap(process_wrap::tokio::KillOnDrop);

0 commit comments

Comments
 (0)