aboutsummaryrefslogtreecommitdiff
path: root/src/connection/ssh.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection/ssh.lisp')
-rw-r--r--src/connection/ssh.lisp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/connection/ssh.lisp b/src/connection/ssh.lisp
index 38fd2ae..f4d30cc 100644
--- a/src/connection/ssh.lisp
+++ b/src/connection/ssh.lisp
@@ -24,9 +24,8 @@
user)
(declare (ignore remaining))
(informat 1 "~&Establishing SSH connection to ~A" hop)
- (let ((connection (make-instance 'ssh-connection :hostname hop :user user)))
- (mrun "ssh" (ssh-host connection) ":")
- connection))
+ (aprog1 (make-instance 'ssh-connection :hostname hop :user user)
+ (mrun "ssh" (ssh-host it) ":")))
(defclass ssh-connection (shell-wrap-connection)
((hostname