aboutsummaryrefslogtreecommitdiff
path: root/src/connection.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-09-16 18:23:16 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-10-23 10:51:30 -0700
commitb9cf8fa7dabb2f47ad38541316ccc373359838ee (patch)
tree160afdbe45e694c8e40ee605e1efe77deecf4da5 /src/connection.lisp
parentdaf5c937b90626fbc0c69d3a09342312c59c125b (diff)
downloadconsfigurator-b9cf8fa7dabb2f47ad38541316ccc373359838ee.tar.gz
factor out REMOTE-EXECUTABLE-FIND
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection.lisp')
-rw-r--r--src/connection.lisp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/connection.lisp b/src/connection.lisp
index 0e80fff..8cd3a00 100644
--- a/src/connection.lisp
+++ b/src/connection.lisp
@@ -601,6 +601,9 @@ specification of POSIX ls(1))."
(merge-pathnames
path (merge-pathnames "consfigurator/" (get-connattr :XDG-CACHE-HOME))))
+(defun remote-executable-find (executable)
+ (zerop (mrun :for-exit "command" "-v" executable)))
+
(defun readfile (path)
(connection-readfile
*connection*