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
if not sock_path:
if args.foreground:
log.error('running in foreground mode requires UNIX socket path')
return 1
log.error('running in foreground mode requires specifying UNIX socket path')
sys.exit(1)
else:
sock_path = tempfile.mktemp(prefix='trezor-ssh-agent-')
return sock_path

Loading…
Cancel
Save