mirror of
https://github.com/RfidResearchGroup/ChameleonUltra.git
synced 2026-10-23 04:21:52 +00:00
cli: skip empty lines when several cmd lines are copy/pasted
This commit is contained in:
1 parent
89aa8c48f1
commit
f93418b7d8
1 file changed
+2
-2
@@ -114,12 +114,12 @@ class ChameleonCLI:
|
||||
cmd_strs = cmd_str.replace(
|
||||
"\r\n", "\n").replace("\r", "\n").split("\n")
|
||||
cmd_str = cmd_strs.pop(0)
|
||||
if cmd_str == "":
|
||||
continue
|
||||
except EOFError:
|
||||
cmd_str = 'exit'
|
||||
except KeyboardInterrupt:
|
||||
cmd_str = 'exit'
|
||||
if cmd_str == '':
|
||||
continue
|
||||
|
||||
# look for alternate exit
|
||||
if cmd_str in ["quit", "q", "e"]:
|
||||
|
||||
Reference in new issue
Block a user