Commit 976d7ebc authored by Alfonso Tierno's avatar Alfonso Tierno
Browse files

change in utils to allow string list for bash commands

parent 94faab0b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -33,7 +33,11 @@ async def local_async_exec(command: str
        Executed a local command using asyncio.
        TODO - do not know yet if return error code, and stdout and strerr or just one of them
    """
    if isinstance(command, str):
        scommand = split(command)
    else  #  isinstance(command, (list, tuple)):
        scommand = command


    logger.debug("Execute local command: {}".format(command))
    process = await asyncio.create_subprocess_exec(