Skip to content

Commit

Permalink
Basic passthrough when acting as shell
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr committed Apr 1, 2021
1 parent 28e84d9 commit 367c03a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bin/qmk-admin
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#! /usr/bin/env python3
import os
import sys
from dialog import Dialog
from pathlib import Path

Expand Down Expand Up @@ -139,6 +140,10 @@ def menu():


if __name__ == "__main__":
if "-c" in sys.argv:
ret = os.system('bash -c "%s"' % " ".join(sys.argv[2:]))
exit(ret)

while menu():
pass

Expand Down

0 comments on commit 367c03a

Please sign in to comment.