Browse Source

Fix SSH command quoting to ensure proper argument handling

main
Bastian (BaM) 3 months ago
parent
commit
3ebb6fecc5
  1. 4
      scripts/auto-boot-ollama-host.lua

4
scripts/auto-boot-ollama-host.lua

@ -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)

Loading…
Cancel
Save