Skip to content

Commit 485b61a

Browse files
attat
1 parent 0ef7733 commit 485b61a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
darwintypes.lua
33
LuaShip.lua
44
teste.lua
5-
*.c
5+
*.c

src/private_machine_methods/cli_iteraction.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private_lua_ship_machine_methods.start = function(self_obj, props)
4242
end
4343
command = command .. name
4444
if props.command then
45-
local formmated = string.gsub(props.command, "'", '"')
45+
local formmated = string.gsub(props.command, "'", "'\\''")
4646
command = command .. " sh -c '" .. formmated.."'"
4747
end
4848
local ok = private_lua_ship.os_execute(command)

0 commit comments

Comments
 (0)