aboutsummaryrefslogtreecommitdiff
path: root/src/connection.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-09-05 15:38:46 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-09-08 13:09:37 -0700
commit210a2d70570792f8fac53960557232de910bff37 (patch)
tree4060cbe2298a02426b2df7c31507512c948a6c1e /src/connection.lisp
parenta41a42f86145909bafa1d7ce75a2ca3a9944e7fa (diff)
downloadconsfigurator-210a2d70570792f8fac53960557232de910bff37.tar.gz
add dep on Anaphora and use APROG1, ALET & AAND in various places
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection.lisp')
-rw-r--r--src/connection.lisp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/connection.lisp b/src/connection.lisp
index efd86ad..0e80fff 100644
--- a/src/connection.lisp
+++ b/src/connection.lisp
@@ -526,8 +526,8 @@ subclass to the :HOSTATTRS subroutine of properties calling this."
(defun empty-remote-directory (directory)
"Recursively delete the contents of DIRECTORY, but not DIRECTORY itself."
- (let ((d (escape-sh-token (drop-trailing-slash (unix-namestring directory)))))
- (mrun (format nil "rm -rf -- ~A/* ~A/.[!.]* ~A/..?*" d d d))))
+ (alet (escape-sh-token (drop-trailing-slash (unix-namestring directory)))
+ (mrun (format nil "rm -rf -- ~A/* ~A/.[!.]* ~A/..?*" it it it))))
(defun remote-exists-p (&rest paths)
"Does each of PATHS exists?