aboutsummaryrefslogtreecommitdiff
path: root/src/connection/shell-wrap.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-03-22 09:38:57 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-03-22 09:38:57 -0700
commitf393eeebe8cf6a31ecc2160658bee3d2c895a98b (patch)
treeb6c85fc026ffafc58f3c1479efadebb8ba699934 /src/connection/shell-wrap.lisp
parent2063385338300dfb11cd1a681ba0ca9e7b1aaf37 (diff)
downloadconsfigurator-f393eeebe8cf6a31ecc2160658bee3d2c895a98b.tar.gz
untabify
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection/shell-wrap.lisp')
-rw-r--r--src/connection/shell-wrap.lisp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/connection/shell-wrap.lisp b/src/connection/shell-wrap.lisp
index dd27f92..6c70210 100644
--- a/src/connection/shell-wrap.lisp
+++ b/src/connection/shell-wrap.lisp
@@ -28,28 +28,28 @@
(defmethod connection-readfile ((c shell-wrap-connection) path)
(multiple-value-bind (out exit)
(let ((path (escape-sh-token path)))
- (connection-run c #?"test -r ${path} && cat ${path}" nil))
+ (connection-run c #?"test -r ${path} && cat ${path}" nil))
(if (zerop exit) out (error "File ~S not readable" path))))
(defmethod connection-writefile ((conn shell-wrap-connection)
- path
- content
- mode)
+ path
+ content
+ mode)
(with-remote-temporary-file
(temp :connection conn :directory (pathname-directory-pathname path))
;; TODO do we want a CONNECTION-ERROR condition to tidy this up?
(multiple-value-bind (out exit)
- (connection-run conn
- (format nil "chmod ~O ~A" mode
- (escape-sh-token temp))
- nil)
+ (connection-run conn
+ (format nil "chmod ~O ~A" mode
+ (escape-sh-token temp))
+ nil)
(unless (zerop exit) (error "Failed to chmod ~A: ~A" temp out)))
(multiple-value-bind (out exit)
- (connection-run conn #?"cat >${temp}" content)
+ (connection-run conn #?"cat >${temp}" content)
(unless (zerop exit) (error "Failed to write ~A: ~A" temp out)))
(multiple-value-bind (out exit)
- (connection-run
- conn
- #?"mv ${(escape-sh-token temp)} ${(escape-sh-token path)}"
- nil)
+ (connection-run
+ conn
+ #?"mv ${(escape-sh-token temp)} ${(escape-sh-token path)}"
+ nil)
(unless (zerop exit) (error "Failed to write ~A: ~A" path out)))))