Skip to content

Commit d87172f

Browse files
authored
fix: handle mac only encrypted flag in global
Signed-off-by: CzBiX <CzBiX@users.noreply.github.com>
1 parent ecb67d2 commit d87172f

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)