aboutsummaryrefslogtreecommitdiff
path: root/src/property/cmd.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-06-27 11:46:19 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-06-27 11:51:05 -0700
commitbe00646656009a660aaf089200117dcd3384d875 (patch)
tree6e9e8f2f9e5fda38d7fd4a69d3dba9de738d56a3 /src/property/cmd.lisp
parent3a5482e8b436805172df321cce9ecccf94d13c13 (diff)
downloadconsfigurator-be00646656009a660aaf089200117dcd3384d875.tar.gz
CMD:SINGLE: fix :DESC subroutine
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property/cmd.lisp')
-rw-r--r--src/property/cmd.lisp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/property/cmd.lisp b/src/property/cmd.lisp
index 67c7984..e74ac3d 100644
--- a/src/property/cmd.lisp
+++ b/src/property/cmd.lisp
@@ -27,5 +27,9 @@ strings which will be shell-escaped and then concatenated.
Keyword argument :ENV is a plist of environment variables to be set when
running the command, using env(1)."
- (:desc (escape-sh-command args))
+ (:desc (loop for arg in args
+ if (stringp arg)
+ collect (escape-sh-token arg) into accum
+ else collect (prin1-to-string arg) into accum
+ finally (return (format nil "~{~A~^ ~}" accum))))
(:apply (apply #'run args)))