fix issues

pull/410/head
vapao 2021-09-18 17:23:36 +08:00
parent 89006a8250
commit 5468bd6627
1 changed files with 3 additions and 3 deletions

View File

@ -132,10 +132,10 @@ class SSH:
counter = 0
self.channel = self.client.invoke_shell()
command = 'export PS1= && stty -echo'
command = 'export PS1= && stty -echo\n'
if self.default_env:
command += f' && {self.default_env}'
command += f' && echo {self.eof} $?\n'
command += f'{self.default_env}\n'
command += f'echo {self.eof} $?\n'
self.channel.send(command.encode())
while True:
if self.channel.recv_ready():