diff --git a/scripts/auto-boot-ollama-host.lua b/scripts/auto-boot-ollama-host.lua index 54698f9..1a79148 100644 --- a/scripts/auto-boot-ollama-host.lua +++ b/scripts/auto-boot-ollama-host.lua @@ -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)