mirror of
https://github.com/xcat2/confluent.git
synced 2024-12-23 19:52:10 +00:00
Amend confetty fix
shlex.join is not widely available, switch to just skipping the split if pre-split by the calling process.
This commit is contained in:
parent
21e97689bc
commit
942685b48d
@ -292,6 +292,8 @@ def rcompleter(text, state):
|
||||
|
||||
|
||||
def parse_command(command):
|
||||
if isinstance(command, list):
|
||||
return command
|
||||
try:
|
||||
args = shlex.split(command, posix=True)
|
||||
except ValueError as ve:
|
||||
@ -912,8 +914,7 @@ def main():
|
||||
do_command("start /nodes/%s/console/session" % session_node, netserver)
|
||||
doexit = True
|
||||
elif shellargs:
|
||||
command = shlex.join(shellargs)
|
||||
do_command(command, netserver)
|
||||
do_command(shellargs, netserver)
|
||||
quitconfetty(fullexit=True, fixterm=False)
|
||||
|
||||
powerstate = None
|
||||
|
Loading…
Reference in New Issue
Block a user