mirror of
https://github.com/netbirdio/service.git
synced 2026-05-22 17:08:14 -07:00
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