ssh: fixup small refactoring bug

This commit is contained in:
Roman Zeyde
2018-02-24 21:23:47 +02:00
parent 4a9140c42d
commit 2168115b06

View File

@@ -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