mirror of https://github.com/openspug/spug
fix issue
parent
dba7b15c67
commit
ceba689868
|
@ -82,6 +82,8 @@ class SSH:
|
|||
exit_code, line = -1, ''
|
||||
while True:
|
||||
line = channel.recv(8196).decode()
|
||||
if not line:
|
||||
break
|
||||
match = self.regex.search(line)
|
||||
if match:
|
||||
exit_code = int(line.rsplit()[-1])
|
||||
|
|
Loading…
Reference in New Issue