oc- exe path fix

This commit is contained in:
ycc 2024-10-16 08:24:32 +02:00
parent 756ba40fbb
commit dae111bd79

View File

@ -32,7 +32,7 @@ func walkFolder(folderPath string, ctx context.Context, wg *sync.WaitGroup) {
if strings.HasPrefix(file.Name(), "oc-") && (!strings.Contains(file.Name(), ".") || strings.Contains(file.Name(), ".exe")) { if strings.HasPrefix(file.Name(), "oc-") && (!strings.Contains(file.Name(), ".") || strings.Contains(file.Name(), ".exe")) {
// Prepare the command to start the process // Prepare the command to start the process
wg.Add(1) wg.Add(1)
go startProcess(ctx, file.Name(), wg) go startProcess(ctx, "./"+file.Name(), wg)
} }
// find // find
if strings.HasPrefix(strings.ToLower(file.Name()), "caddy") && strings.ToLower(file.Name()) != "caddyfile" { if strings.HasPrefix(strings.ToLower(file.Name()), "caddy") && strings.ToLower(file.Name()) != "caddyfile" {