Allow args to be passed

This commit is contained in:
arki05 2021-04-13 02:18:24 +02:00 committed by GitHub
parent 2294da3d17
commit b7e509d524
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -249,7 +249,7 @@ def main():
exit()
device.on("child-added", on_child_added)
pid = device.spawn(sys.argv[2])
pid = device.spawn(["/bin/bash", "-c", ' '.join(sys.argv[2:])])
instrument(pid)
# Wait for everything to terminate before exiting.