Skip to content

Commit 0ef7733

Browse files
att
1 parent 042b5b3 commit 0ef7733

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
print("aaa")

src/private_machine_methods/cli_iteraction.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ private_lua_ship_machine_methods.start = function(self_obj, props)
4242
end
4343
command = command .. name
4444
if props.command then
45-
command = command .. " " .. props.command
45+
local formmated = string.gsub(props.command, "'", '"')
46+
command = command .. " sh -c '" .. formmated.."'"
4647
end
4748
local ok = private_lua_ship.os_execute(command)
4849
if not ok then

0 commit comments

Comments
 (0)