diff options
| -rw-r--r-- | src/core.lisp | 7 |
1 files 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 |
