service: fix windows when path contains spaces.

This commit is contained in:
Daniel Theophanes
2014-12-20 23:11:50 -08:00
parent e8fe9e16c3
commit 6d5062006f
+2
View File
@@ -66,6 +66,8 @@ func (ws *windowsService) Install() error {
if err != nil {
return err
}
// Used if path contains a space.
exepath = `"` + exepath + `"`
m, err := mgr.Connect()
if err != nil {
return err