containers / podlet

Generate Podman Quadlet files from a Podman command, compose file, or existing object
https://crates.io/crates/podlet
Mozilla Public License 2.0
322 stars 10 forks source link

compose: `Exec=` incorrectly quoted for string `command`s #36

Closed hakong closed 6 months ago

hakong commented 6 months ago

Should this not be

Exec="command" "-a" "arg" "-b" "arg"

?

I just generated a .container file from a compose that had

command: mosquitto -c /mosquitto-no-auth.conf

And the resulting .container file had:

Exec="mosquitto -c /mosquitto-no-auth.conf"

Which didn't work AFAICS.

k9withabone commented 6 months ago

You are correct, nice catch. Except I don't think every arg needs to be quoted, just when it contains whitespace.