mirror of https://github.com/openspug/spug
fix issues
parent
b836148bc5
commit
bcd44bc0f8
|
@ -176,7 +176,7 @@ class SSH:
|
||||||
return f'export {str_envs}'
|
return f'export {str_envs}'
|
||||||
|
|
||||||
def _handle_command(self, command, environment):
|
def _handle_command(self, command, environment):
|
||||||
commands = command.strip('\n').splitlines()
|
commands = command.strip().splitlines()
|
||||||
commands.insert(0, self._make_env_command(environment))
|
commands.insert(0, self._make_env_command(environment))
|
||||||
commands.append(f'echo {self.eof} $?\n')
|
commands.append(f'echo {self.eof} $?\n')
|
||||||
return ';'.join(x for x in commands if x).encode()
|
return ';'.join(x for x in commands if x).encode()
|
||||||
|
|
Loading…
Reference in New Issue