with lots of repos

This commit is contained in:
2022-09-14 23:34:45 +02:00
parent 896b28188b
commit 6af0ecec33
3 changed files with 33 additions and 2 deletions

View File

@@ -41,6 +41,6 @@ func (g *Go) Build(ctx context.Context, modulePath, entryPath string) (GoExecuta
return func(ctx context.Context, victimPath string) error {
g.logger.Debug("Executing script", zap.String("victim", victimPath))
return exec.CommandContext(ctx, fmt.Sprintf("(cd %s; %s/main)", victimPath, modulePath)).Run()
return exec.CommandContext(ctx, "/bin/bash", "-c", fmt.Sprintf("(cd %s; %s/main)", victimPath, modulePath)).Run()
}, nil
}