forked from extern/podman-compose
#52: fix how we split commands
This commit is contained in:
parent
87e7211ade
commit
9684429157
@ -20,6 +20,8 @@ import random
|
|||||||
|
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
|
||||||
|
import shlex
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from shlex import quote as cmd_quote
|
from shlex import quote as cmd_quote
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@ -565,7 +567,7 @@ def container_to_args(compose, cnt, detached=True, podman_command='run'):
|
|||||||
command = cnt.get('command')
|
command = cnt.get('command')
|
||||||
if command is not None:
|
if command is not None:
|
||||||
if is_str(command):
|
if is_str(command):
|
||||||
podman_args.extend(command.split())
|
podman_args.extend(shlex.split(command))
|
||||||
else:
|
else:
|
||||||
podman_args.extend(command)
|
podman_args.extend(command)
|
||||||
return podman_args
|
return podman_args
|
||||||
|
Loading…
Reference in New Issue
Block a user