diff --git a/setup.py b/setup.py index 67c6a34..a57c23a 100644 --- a/setup.py +++ b/setup.py @@ -107,7 +107,8 @@ def ping(host: str) -> bool: for container in containers: print(f"Running commands for {container} on {server}") _, o1, e1 = client.exec_command( - f"echo '{SUDO_PASSWORD[server]}' | sudo -S bash -c 'cd {container}; if [ -f \"setup.sh\" ]; then\n chmod +x setup.sh && sudo ./setup.sh\nfi'" + f"echo '{SUDO_PASSWORD[server]}' | sudo -S bash -c 'cd {container};" + \ + f"if [ -f \"setup.sh\" ]; then\n chmod +x setup.sh && sudo ./setup.sh\nfi'" ) for c in iter(lambda: o1.read(1), b""): sys.stdout.buffer.write(c)