mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-19 18:34:59 +00:00
Fix broken --output-file (#620)
Fixes the broken write to output file option, --output-file.
This commit is contained in:
@@ -22,7 +22,7 @@ func sanitizeFile(opts *cliOptions) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if *opts.SanitizeOutputFile != "" {
|
if *opts.SanitizeOutputFile != "" {
|
||||||
ifh, err = os.Create(*opts.SanitizeOutputFile)
|
ofh, err = os.Create(*opts.SanitizeOutputFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrapf(err, "Cannot create output file %q", *opts.SanitizeOutputFile)
|
return errors.Wrapf(err, "Cannot create output file %q", *opts.SanitizeOutputFile)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user