From b9cf8fa7dabb2f47ad38541316ccc373359838ee Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 16 Sep 2021 18:23:16 -0700 Subject: factor out REMOTE-EXECUTABLE-FIND Signed-off-by: Sean Whitton --- src/connection.lisp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/connection.lisp') 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* -- cgit v1.2.3