aboutsummaryrefslogtreecommitdiff
path: root/src/connection.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-07-13 19:32:42 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-07-13 19:32:42 -0700
commit350be6c791db8c943b284d8e53d768a1a2a1ee50 (patch)
tree8e7d5f9ecabdc4a602f6c9320b948d73c8dbc547 /src/connection.lisp
parent63f4de9e95473f30df8f044e4967c1c51cf7c6e2 (diff)
downloadconsfigurator-350be6c791db8c943b284d8e53d768a1a2a1ee50.tar.gz
MKTEMP: avoid capturing echo builtin's stderr
In the case where there is no m4(1) on PATH we get "sh: 1: echo: echo: I/O error" as the first line of output. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection.lisp')
-rw-r--r--src/connection.lisp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection.lisp b/src/connection.lisp
index 57b48c6..b2b0cac 100644
--- a/src/connection.lisp
+++ b/src/connection.lisp
@@ -286,7 +286,7 @@ which will be cleaned up when BODY is finished."
;; writeable by its owner, POSIX doesn't require this, so set a umask.
(connection-run
connection
- #?"umask 077; echo 'mkstemp(${template})' | m4 2>/dev/null || mktemp '${template}'"
+#?"umask 077; echo 'mkstemp(${template})' 2>/dev/null | m4 2>/dev/null || mktemp '${template}'"
nil)
(let ((lines (lines out)))
(if (and (zerop exit) lines)