Skip to content

Commit d84a324

Browse files
authored
Merge pull request #1721 from felixfontein/updatekeys-input-type
updatekeys subcommand: fix input-type CLI flag being ignored
2 parents abd17b4 + fefdbdf commit d84a324

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)