Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions pkg/sops/sops.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ func (d *Decryptor) Decrypt(fileName string, encrypted string) ([]byte, error) {

// We shell out to SOPS because that way we get better error messages
command := exec.Command("sops", args...)

buffer := bytes.Buffer{}
buffer.WriteString(encrypted)
command.Stdin = &buffer
command.Stdin = bytes.NewBufferString(encrypted)

output, err := command.Output()
if err != nil {
Expand Down