From e28293368a0f5942804a044648ec337267f6e5da Mon Sep 17 00:00:00 2001 From: Mark Junker Date: Mon, 4 May 2015 09:20:40 +0200 Subject: [PATCH] Escape backslash to allow usage of dev server on Windows using MinGW (partially fixes issue #95) --- command/token/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/token/helper.go b/command/token/helper.go index b7041a4623..d4bbbbf813 100644 --- a/command/token/helper.go +++ b/command/token/helper.go @@ -94,6 +94,6 @@ func (h *Helper) Store(v string) error { } func (h *Helper) cmd(op string) *exec.Cmd { - cmd := exec.Command("sh", "-c", h.Path+" "+op) + cmd := exec.Command("sh", "-c", strings.Replace(h.Path, "\\", "\\\\", -1)+" "+op) return cmd }