Skip to content

Commit 06e8e91

Browse files
committed
working os lib and reg lib now
1 parent 91db2da commit 06e8e91

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

engine/lib_os.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package engine
33
import (
44
"errors"
55
"os"
6+
"path/filepath"
67
"strings"
78
"syscall"
89

@@ -102,7 +103,7 @@ func (e *Engine) FindProcByName(procName string) (int, error) {
102103
//
103104
func (e *Engine) InstallSystemService(path, name, displayName, description string) error {
104105
c := &services.Config{
105-
Path: path,
106+
Path: filepath.Clean(path),
106107
Name: name,
107108
DisplayName: displayName,
108109
Description: description,

0 commit comments

Comments
 (0)