Skip to content

Commit 87864fe

Browse files
fix: wrong code
1 parent 7b4e4ff commit 87864fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src-tauri/src/cmd/system.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub fn execute_luac(path: String, contents: String) -> Result<String, Box<dyn Er
6060
pub fn execute_luac(path: String, contents: String) -> Result<String, Box<dyn Error>> {
6161
let lua_path = write_lua(contents)?;
6262
let cmd_str = format!("-c {} -o dev.luac {}", path, lua_path.display());
63-
let child = Command::new("cmd").raw_arg(cmd_str).spawn()?;
63+
let child = Command::new("bash").arg(cmd_str).spawn()?;
6464
return_luac(child, &path)
6565
}
6666

0 commit comments

Comments
 (0)