]> glassweightruler.freedombox.rocks Git - waydroid.git/blobdiff - tools/helpers/lxc.py
fix(shell): allow command to have arguments
[waydroid.git] / tools / helpers / lxc.py
index cb0b56c4fc7deba64bc2ffe36602c46ed5066483..19a7ceb9b7760907ce3d4488509c2e6d8cbfee63 100644 (file)
@@ -373,7 +373,7 @@ def shell(args):
     command = ["lxc-attach", "-P", tools.config.defaults["lxc"],
                "-n", "waydroid", "--"]
     if args.COMMAND:
-        command.append(args.COMMAND)
+        command.extend(args.COMMAND)
     else:
         command.append("/system/bin/sh")
     subprocess.run(command, env={"PATH": os.environ['PATH'] + ":/system/bin:/vendor/bin"})