Skip to content

Commit

Permalink
fix: wrong code
Browse files Browse the repository at this point in the history
  • Loading branch information
jianxingxuejian committed Dec 24, 2022
1 parent 7b4e4ff commit 87864fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/cmd/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub fn execute_luac(path: String, contents: String) -> Result<String, Box<dyn Er
pub fn execute_luac(path: String, contents: String) -> Result<String, Box<dyn Error>> {
let lua_path = write_lua(contents)?;
let cmd_str = format!("-c {} -o dev.luac {}", path, lua_path.display());
let child = Command::new("cmd").raw_arg(cmd_str).spawn()?;
let child = Command::new("bash").arg(cmd_str).spawn()?;
return_luac(child, &path)
}

Expand Down

0 comments on commit 87864fe

Please sign in to comment.