Skip to content

Commit 54271b7

Browse files
committed
fix (core): 修复命令指向错误语法
1 parent aef3607 commit 54271b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src-tauri/src/plugins/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,11 @@ pub trait LanguagePlugin: Send + Sync {
273273
fn execute_cross_platform_command(&self, command: &str) -> Result<(), String> {
274274
let output = if cfg!(target_os = "windows") {
275275
std::process::Command::new("cmd")
276-
.args(&["/C", command])
276+
.args(["/C", command])
277277
.output()
278278
} else {
279279
std::process::Command::new("sh")
280-
.args(&["-c", command])
280+
.args(["-c", command])
281281
.output()
282282
};
283283

0 commit comments

Comments
 (0)