From f1e2214d01ae9d979fd42166133aa5066a42f956 Mon Sep 17 00:00:00 2001 From: ckonstanski Date: Wed, 14 Jan 2026 22:35:14 -0700 Subject: fix shell-command for mac --- src/core.lisp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core.lisp b/src/core.lisp index 0689187..fef1c53 100644 --- a/src/core.lisp +++ b/src/core.lisp @@ -180,9 +180,10 @@ make it the specified length." atom of the list is a string that contains one line of the output." (let ((output (make-array '(0) :element-type 'character :fill-pointer 0 :adjustable t))) (with-output-to-string (stream output) - (uffi:run-shell-command command :output stream)) - (loop for line in (ppcre:split #\Newline output) - collect line))) + (let ((return-code (uffi:run-shell-command command :output stream))) + (values (loop for line in (ppcre:split #\Newline output) + collect line) + return-code))))) (defmacro sendmail (mail-server from to subject message &key display-name reply-to html-message authentication ssl attachments) "Wrapper around `cl-smtp:send-email'. `attachments' needs to be a -- cgit v1.3