mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
fix: Merge conflicts
This commit is contained in:
@@ -34,15 +34,15 @@ func WithSandbox(sb sandbox.Sandbox) applySandboxOpt {
|
||||
func ApplySandbox(ctx context.Context, cmd *exec.Cmd, pmName string, opts ...applySandboxOpt) (*sandbox.ExecutionResult, error) {
|
||||
cfg := config.Get()
|
||||
|
||||
if !cfg.Config.Sandbox.Enabled {
|
||||
return sandbox.NewExecutionResult(), nil
|
||||
}
|
||||
|
||||
applyConfig := &applySandboxConfig{}
|
||||
for _, opt := range opts {
|
||||
opt(applyConfig)
|
||||
}
|
||||
|
||||
if !cfg.Config.Sandbox.Enabled {
|
||||
return sandbox.NewExecutionResult(), nil
|
||||
}
|
||||
|
||||
registry, err := sandbox.NewProfileRegistry()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to create profile registry: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user