Only split a command_string if its not a list
This commit is contained in:
parent
50aabde320
commit
fabb97cf48
|
@ -146,7 +146,11 @@ def run_os_daemon(command_string, environment=None, logfile=None):
|
||||||
# Run a local OS command via shell
|
# Run a local OS command via shell
|
||||||
#
|
#
|
||||||
def run_os_command(command_string, background=False, environment=None, timeout=None):
|
def run_os_command(command_string, background=False, environment=None, timeout=None):
|
||||||
|
if not isinstance(command_string, list):
|
||||||
command = shlex_split(command_string)
|
command = shlex_split(command_string)
|
||||||
|
else:
|
||||||
|
command = command_string
|
||||||
|
|
||||||
if background:
|
if background:
|
||||||
|
|
||||||
def runcmd():
|
def runcmd():
|
||||||
|
|
Loading…
Reference in New Issue