gpgToRCW: Bump libmutton to latest development version

This commit is contained in:
2025-05-20 16:23:15 +00:00
parent 6e5a3b8f5b
commit a22b803288
4 changed files with 15 additions and 76 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import (
"strings"
"github.com/rwinkhart/go-boilerplate/back"
"github.com/rwinkhart/libmutton/core"
"github.com/rwinkhart/libmutton/global"
)
// decryptGPG decrypts a GPG-encrypted file and returns the contents as a slice of (trimmed) strings.
@@ -13,7 +13,7 @@ func decryptGPG(targetLocation string) []string {
cmd := exec.Command("gpg", "--pinentry-mode", "loopback", "-q", "-d", targetLocation)
output, err := cmd.Output()
if err != nil {
back.PrintError("Failed to decrypt \""+targetLocation+"\" - Ensure it is a valid GPG-encrypted file and that you entered your passphrase correctly", core.ErrorDecryption, true)
back.PrintError("Failed to decrypt \""+targetLocation+"\" - Ensure it is a valid GPG-encrypted file and that you entered your passphrase correctly", global.ErrorDecryption, true)
}
return strings.Split(string(output), "\n")
}