mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
fix: Add support for sandbox cleanup
This commit is contained in:
@@ -84,5 +84,6 @@ func ApplySandbox(ctx context.Context, cmd *exec.Cmd, pmName string) (*sandbox.E
|
||||
return nil, fmt.Errorf("failed to setup sandbox: %w", err)
|
||||
}
|
||||
|
||||
return result, nil
|
||||
// Return result with sandbox reference so caller can defer result.Close()
|
||||
return sandbox.NewExecutionResultWithSandbox(result.WasExecuted(), sb), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user