Skip to content

Commit d4bcce9

Browse files
authored
Merge pull request #2100 from CzBiX/patch-3
fix: handle mac only encrypted flag in global
2 parents 0e3c5ec + 0dfe6b7 commit d4bcce9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/sops/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2116,7 +2116,7 @@ func getEncryptConfig(c *cli.Context, fileName string, inputStore common.Store,
21162116
unencryptedRegex := c.String("unencrypted-regex")
21172117
encryptedCommentRegex := c.String("encrypted-comment-regex")
21182118
unencryptedCommentRegex := c.String("unencrypted-comment-regex")
2119-
macOnlyEncrypted := c.Bool("mac-only-encrypted")
2119+
macOnlyEncrypted := c.GlobalBool("mac-only-encrypted")
21202120
var err error
21212121
if optionalConfig == nil {
21222122
optionalConfig, err = loadConfig(c, fileName, nil)

0 commit comments

Comments
 (0)