Escape backslash to allow usage of dev server on Windows using MinGW (partially fixes issue #95)

This commit is contained in:
Mark Junker
2015-05-04 09:20:40 +02:00
parent 7bbc827590
commit e28293368a

View File

@@ -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
}