Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

Commit 7ae495a

Browse files
committed
Проверка там ни к чему)
1 parent edcf50a commit 7ae495a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

lib/start.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@ import (
44
"fmt"
55
"os"
66
"os/exec"
7-
"path/filepath"
87
"strings"
98
"syscall"
109
)
1110

1211
func Injector(config Settings) {
13-
// Проверяем путь к обсаленный
14-
if !filepath.IsAbs(config.JavaPath) {
15-
lp, err := exec.LookPath(config.JavaPath)
16-
PrintError(err)
17-
config.JavaPath = lp
18-
}
12+
// Нормализуем путь до жабки
13+
lp, err := exec.LookPath(config.JavaPath)
14+
PrintError(err)
15+
config.JavaPath = lp
1916

2017
// Собираем аргументы для запуска процесса
2118
args := []string{config.JavaPath, fmt.Sprintf("-javaagent:%s=%s", config.Injector, config.URL)}

0 commit comments

Comments
 (0)