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