Fix SSH command quoting to ensure proper argument handling
This commit is contained in:
@@ -118,8 +118,8 @@ local function ssh(command, user, host, port, identity_file)
|
|||||||
end
|
end
|
||||||
table.insert(pieces, dest)
|
table.insert(pieces, dest)
|
||||||
|
|
||||||
-- Quote remote command so the local shell treats it as a single arg
|
-- Quote remote command so the local shell treats it as a single arg.
|
||||||
table.insert(pieces, command)
|
table.insert(pieces, '"' .. command .. '"')
|
||||||
|
|
||||||
-- Join with spaces for os.execute
|
-- Join with spaces for os.execute
|
||||||
local function join(args)
|
local function join(args)
|
||||||
|
|||||||
Reference in New Issue
Block a user