Fix SSH command quoting to ensure proper argument handling

This commit is contained in:
Bastian (BaM)
2025-09-14 13:59:59 +02:00
parent d092952df8
commit 3ebb6fecc5

View File

@@ -118,8 +118,8 @@ local function ssh(command, user, host, port, identity_file)
end
table.insert(pieces, dest)
-- Quote remote command so the local shell treats it as a single arg
table.insert(pieces, command)
-- Quote remote command so the local shell treats it as a single arg.
table.insert(pieces, '"' .. command .. '"')
-- Join with spaces for os.execute
local function join(args)