ssh: fixup small refactoring bug

master
Roman Zeyde 6 years ago
parent 4a9140c42d
commit 2168115b06
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

@ -217,8 +217,8 @@ def _get_sock_path(args):
sock_path = args.sock_path sock_path = args.sock_path
if not sock_path: if not sock_path:
if args.foreground: if args.foreground:
log.error('running in foreground mode requires UNIX socket path') log.error('running in foreground mode requires specifying UNIX socket path')
return 1 sys.exit(1)
else: else:
sock_path = tempfile.mktemp(prefix='trezor-ssh-agent-') sock_path = tempfile.mktemp(prefix='trezor-ssh-agent-')
return sock_path return sock_path

Loading…
Cancel
Save