Make generated files have SUDO_USER's permissions if possible.

This commit is contained in:
世界
2024-01-03 12:21:47 +08:00
parent adc424188c
commit 2b9897dbb8
2 changed files with 22 additions and 3 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ func create() (*box.Box, context.CancelFunc, error) {
}
options.Log.DisableColor = true
}
ctx, cancel := context.WithCancel(context.Background())
ctx, cancel := context.WithCancel(globalCtx)
instance, err := box.New(box.Options{
Context: ctx,
Options: options,