diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-03-22 09:38:57 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-03-22 09:38:57 -0700 |
commit | f393eeebe8cf6a31ecc2160658bee3d2c895a98b (patch) | |
tree | b6c85fc026ffafc58f3c1479efadebb8ba699934 /src/connection/shell-wrap.lisp | |
parent | 2063385338300dfb11cd1a681ba0ca9e7b1aaf37 (diff) | |
download | consfigurator-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.lisp | 26 |
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))))) |