aboutsummaryrefslogtreecommitdiff
path: root/src/connection/local.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-02-26 17:17:09 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-02-27 08:33:17 -0700
commitd1eda3b5a5642611c836bc3f5f7d00d100aa7965 (patch)
tree75d96f366c09f767a1be2e9662d296d988952de2 /src/connection/local.lisp
parentb71e99d16b77cad933fc2554b132009f5ed404e4 (diff)
downloadconsfigurator-d1eda3b5a5642611c836bc3f5f7d00d100aa7965.tar.gz
don't assume local shell is POSIX
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection/local.lisp')
-rw-r--r--src/connection/local.lisp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/connection/local.lisp b/src/connection/local.lisp
index 06b4e67..85c8f95 100644
--- a/src/connection/local.lisp
+++ b/src/connection/local.lisp
@@ -34,8 +34,8 @@ root Lisp is running on, as the root Lisp's uid."))
(defmethod connection-run ((connection local-connection) shell-cmd input)
(multiple-value-bind (output _ exit-code)
- ;; assumes a POSIX shell (otherwise we could wrap in 'sh -c')
- (run-program shell-cmd
+ ;; wrap in sh -c in case user's shell is not POSIX
+ (run-program (strcat "sh -c " (escape-sh-token shell-cmd))
:force-shell t
:input input
:output :string