Skip to content

Commit fefdbdf

Browse files
Fix input-type CLI flag being ignored for updatekeys subcommand.
Co-authored-by: Timo Schrader <[email protected]> Signed-off-by: Felix Fontein <[email protected]>
1 parent abd17b4 commit fefdbdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/sops/subcommand/updatekeys/updatekeys.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func updateFile(opts Opts) error {
4545
if err != nil {
4646
return err
4747
}
48-
store := common.DefaultStoreForPath(sc, opts.InputPath)
48+
store := common.DefaultStoreForPathOrFormat(sc, opts.InputPath, opts.InputType)
4949
log.Printf("Syncing keys for file %s", opts.InputPath)
5050
tree, err := common.LoadEncryptedFile(store, opts.InputPath)
5151
if err != nil {

0 commit comments

Comments
 (0)