brotli CLI no longer takes --input argument

This commit is contained in:
Laurence Withers 2019-12-10 15:03:41 +00:00
parent 566c23dd7e
commit 280bf2b181
1 changed files with 1 additions and 2 deletions

View File

@ -233,8 +233,7 @@ func packOneBrotli(packer *packWriter, filename string, uncompressedSize uint64,
defer tmpfile.Close() defer tmpfile.Close()
// compress via commandline // compress via commandline
cmd := exec.Command(BrotliPath, "--input", filename, cmd := exec.Command(BrotliPath, filename, "--output", tmpfile.Name())
"--output", tmpfile.Name())
out, err := cmd.CombinedOutput() out, err := cmd.CombinedOutput()
if err != nil { if err != nil {
err = fmt.Errorf("brotli: %v (process reported: %s)", err, out) err = fmt.Errorf("brotli: %v (process reported: %s)", err, out)