Update documentation for gpgToRCW

This commit is contained in:
2025-05-11 00:28:43 -04:00
parent fbfcdc5320
commit 491392562a
4 changed files with 8 additions and 10 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ import (
// WriteEntry writes entryData to an encrypted file at targetLocation.
func WriteEntry(targetLocation string, entryData []byte) {
encryptedBytes := EncryptBytes(entryData)
err := os.WriteFile(targetLocation, encryptedBytes, 0600)
encBytes := EncryptBytes(entryData)
err := os.WriteFile(targetLocation, encBytes, 0600)
if err != nil {
back.PrintError("Failed to write to file: "+err.Error(), back.ErrorWrite, true)
}