diff --git a/src/go/pt-secure-collect/encrypt.go b/src/go/pt-secure-collect/encrypt.go index 07c834de..1ae00f18 100644 --- a/src/go/pt-secure-collect/encrypt.go +++ b/src/go/pt-secure-collect/encrypt.go @@ -22,7 +22,7 @@ func encryptorCmd(opts *cliOptions) (err error) { *opts.DecryptOutFile = strings.TrimSuffix(filepath.Base(*opts.DecryptInFile), ".aes") } log.Infof("Decrypting file %q into %q", *opts.DecryptInFile, *opts.DecryptOutFile) - err = decrypt(*opts.DecryptInFile, *opts.DecryptOutFile, password) + err = decrypt(*opts.DecryptInFile, *opts.DecryptOutFile, password case "encrypt": if *opts.EncryptOutFile == "" { *opts.EncryptOutFile = filepath.Base(*opts.EncryptInFile) + ".aes"