mirror of
https://github.com/restic/restic.git
synced 2026-11-02 13:35:33 +00:00
reduce usages of globalOptions variable
This commit is contained in:
1 parent
e4395a9d73
commit
6bd85d2412
18 files changed
+58
-62
No files matched your search
@@ -586,7 +586,7 @@ func runBackup(ctx context.Context, opts BackupOptions, gopts GlobalOptions, ter
|
||||
filename := path.Join("/", opts.StdinFilename)
|
||||
var source io.ReadCloser = os.Stdin
|
||||
if opts.StdinCommand {
|
||||
source, err = fs.NewCommandReader(ctx, args, globalOptions.stderr)
|
||||
source, err = fs.NewCommandReader(ctx, args, msg.E)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user