service: fix windows when path contains spaces.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user