Skip to content

Commit

Permalink
Fix input-type CLI flag being ignored for updatekeys subcommand.
Browse files Browse the repository at this point in the history
Co-authored-by: Timo Schrader <[email protected]>
Signed-off-by: Felix Fontein <[email protected]>
  • Loading branch information
felixfontein and kleinschrader committed Dec 25, 2024
1 parent abd17b4 commit fefdbdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/sops/subcommand/updatekeys/updatekeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func updateFile(opts Opts) error {
if err != nil {
return err
}
store := common.DefaultStoreForPath(sc, opts.InputPath)
store := common.DefaultStoreForPathOrFormat(sc, opts.InputPath, opts.InputType)
log.Printf("Syncing keys for file %s", opts.InputPath)
tree, err := common.LoadEncryptedFile(store, opts.InputPath)
if err != nil {
Expand Down

0 comments on commit fefdbdf

Please sign in to comment.